Git pull from someone else’s fork

Add a new remote (say, other) in your own repo. Pull other/<branch> changes into your local branch (say, add-other-changes). Push to your own forked repo (origin/add-other-changes). Now, when’re you done with add-other-changes branch, create a Pull request & merge it with origin/master. Pull other repo’s changes into your own repo: # go into your own … Read more

Force push current branch

You can use aliases to shorten the command. Use it like this: git config –global alias.fpush “push –force origin” Now to push your branch just type: git fpush feature-mongodb-support Or you can even hardcode the branch name into the command: git alias fpush “push –force origin feature-mongodb-support” and use only git fpush to push your … Read more

What is the difference between push.default “matching” and “simple”

git push can push all branches or a single one dependent on this configuration: Push all branches git config –global push.default matching It will push all the branches to the remote branch and would merge them. If you don’t want to push all branches, you can push the current branch if you fully specify its … Read more

git push NOT current branch to remote

All those “another another” in the original question, the answer and lots of comments are so confusing (which is a perfect example of why it is important to name your things right in the first place), I can’t help helping (pun not intended) to write yet another answer as below. Q: Is there a way … Read more

Git, error: remote unpack failed: unable to create temporary object directory – By creating new Branch

This error message: error: remote unpack failed: unable to create temporary object directory indicates that the Git repository at the server (not your Git) is out of space, or running into similar server problems,1 or installed incorrectly. That is, given: To: http://git.int.censoredlink/scm/freeb/freebrep.git you will have to log in to the machine that serves HTTP traffic … Read more