kuniga.me > Docs > Git Cheatsheet
NOTE: this doesn’t remove untracked files
Creates new branch foo
:
Changes to branch foo
:
List existing branches:
Delete branch foo
(move away from it first):
Add new remote repo shorcut/alias. For example, I want public
to refer to the repository at git@github.com:kunigami/my-repo.git
.
List remote repos associated to this local repo:
Send changes to a remote repo + branch, for example, the remote repository aliased as origin
, branch test
:
“Pull” remote branch (e.g. my_remote_branch
) that does not exist in your local repo and switch to it. Note: this only works if my_remote_branch
only appears in exactly one of the remote repos:
Mark file as resolved: