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

Why does git say “Pull is not possible because you have unmerged files”?

What is currently happening is, that you have a certain set of files, which you have tried merging earlier, but they threw up merge conflicts. Ideally, if one gets a merge conflict, he should resolve them manually, and commit the changes using git add file.name && git commit -m “removed merge conflicts”. Now, another user has … Read more

Your configuration specifies to merge with the from the remote, but no such ref was fetched.?

What this means Your upstream—the remote you call origin—no longer has, or maybe never had (it’s impossible to tell from this information alone) a branch named feature/Sprint4/ABC-123-Branch. There’s one particularly common reason for that: someone (probably not you, or you’d remember) deleted the branch in that other Git repository. What to do This depends on what you want. … Read more