FahamLah

Commands

git push

git push [-u] [<remote> <branch>]

Risk: Careful

What it does

Sends your new commits to the remote, like GitHub.

When to use it

When your work is ready for others to see.

Example

$ git push -u origin main

First push: send main and remember where it goes.

$ git push

After the first time, this is enough.

$ git push --tags

Send your tags too.

$ git push origin --delete old-branch

Delete a branch on the remote.