Git · Everyday workflow

git push

Publishes local commits. The first push sets the upstream branch.

Syntax
git push -u origin <branch>

Example

Example
git push -u origin feature/auth

More in this group

git add git blame git commit git commit --amend git diff git fetch git log git mv

Learn this in the course

Reference pages are the quick answer. The course explains the why, shows the full example and ends with a challenge.

Open the course