How to pull remote branch from somebody else’s repo

git remote add coworker git://path/to/coworkers/repo.git git fetch coworker git checkout –track coworker/foo This will setup a local branch foo, tracking the remote branch coworker/foo. So when your co-worker has made some changes, you can easily pull them: git checkout foo git pull Response to comments: Cool 🙂 And if I’d like to make my own … Read more

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”

GitHub – fatal: could not read Username for ‘https://github.com’: No such file or directory

Follow the steps to setup SSH keys here: https://help.github.com/articles/generating-ssh-keys OR git remote add origin https://{username}:{password}@github.com/{username}/project.git Update: If you get “fatal: remote origin already exists.” then you have to use set-url: git remote set-url origin https://{username}:{password}@github.com/{username}/project.git