What is the difference between “git push” and “git push origin master”? [duplicate]

git push assumes that you already have a remote repository defined for that branch. In this case, the default remote origin is used. git push origin master indicates that you are pushing to a specific remote, in this case, origin. This would only matter if you created multiple remote repositories in your code base. If … Read more

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