Q:

Git command confusion

I'm a beginner using Git. I'm confused about these commands:
git push -u origin master

git push origin master

What is the difference between them?

A:

In short, the -u parameter tells git to set upstream source for this branch. After this is done, no need to set it again, git push origin master is sufficent.

