Skip to content

GIT

A collection of basic GIT commands that can be helpful:

Switching to the local branch:

git checkout <name>

Rename the local branch:

git branch -m <new_name>

Push the local branch:

git push origin -u <name>

Delete the remote branch:

git push origin –delete <name>

List local branches

git branch

List remote branches

git branch -r

Committing to the local branch

git commit -m “Commit description”

Leave a Reply

Your email address will not be published. Required fields are marked *

Close Bitnami banner
Bitnami