GIT pull error – remote object is corrupted

As Julian said see https://confluence.atlassian.com/display/FISHKB/Git+indexing+fails+due+to+bad+pack+header It really can be a memory issue, and to make sure we don’t lose the solution here it is: git config –global pack.windowMemory “100m” git config –global pack.SizeLimit “100m” git config –global pack.threads “1”

`git fetch` a remote branch

Update: Using Git Switch All of the information written below was accurate, but a new command, git switch has been added that simplifies the effort. If daves_branch exists on the remote repository, but not on your local branch, you can simply type: git switch daves_branch Since you do not have the branch locally, this will … Read more

git refusing to fetch into current branch

In case anyone finds this because they specifically want to fetch into the current branch, you can use the –update-head-ok flag. From the docs: -u –update-head-ok By default git fetch refuses to update the head which corresponds to the current branch. This flag disables the check. This is purely for the internal use for git … Read more

git fetch, FETCH_HEAD and origin/master

I’m a bit confused by the commands you use. HEAD is usually a label git uses to track the commit that is currently in the working directory. The git fetch command expects a remote or a remote commit configuration to know what you want fetched. Using git fetch HEAD would indicate HEAD is a remote … Read more