! [rejected] master -> master (fetch first)

The answer is there, git is telling you to fetch first. Probably somebody else has pushed to master already, and your commit is behind. Therefore you have to fetch, merge the changeset, and then you’ll be able to push again. If you don’t (or even worse, if you force it by using the –force option), you can … Read more

Git: “please tell me who you are” error

I have app servers that I bootstrap together using Chef + some ad-hoc bash scripts. The problem is, when I want to run an update on one of these app servers, I get: Do I really need to set this for doing a simple git pull origin master every time I update an app server? Is there … Read more

How to delete a stash created with git stash create?

To delete a normal stash created with git stash , you want git stash drop or git stash drop stash@{n}. See below for more details. You don’t need to delete a stash created with git stash create. From the docs: Create a stash entry (which is a regular commit object) and return its object name, without storing it anywhere in the … Read more

Git: Installing Git in PATH with GitHub client for Windows

GitHub for Windows does indeed install its own version of Git, but it doesn’t add it to the PATH variable, which is easy enough to do. Here’s instructions on how to do it: Get the Git URLWe need to get the url of the Git \cmd directory your computer. Git is located here:C:\Users\<user>\AppData\Local\GitHub\PortableGit_<guid>\cmd\git.exe So on your computer, replace <user> with your … Read more

git add remote branch

I am not sure if you are trying to create a remote branch from a local branch or vice versa, so I’ve outlined both scenarios as well as provided information on merging the remote and local branches. Creating a remote called “github”: List all remote branches: Create a new local branch (test) from a github’s … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)