Git

From Fundamental Ramen
Revision as of 08:14, 14 August 2018 by Tacoball (talk | contribs)
Jump to navigation Jump to search

Cloned a forked repo.

Initialize a new repo.

Optimize for myself.

git config --global core.editor "vim"

Others

git branch -v -a # See local and remote branches
master                                c313bf9 ...
remotes/origin/static-files-2         be32085 ...
remotes/origin/static-files-3         e9021d8 ...
git checkout -b static-files-3 remotes/origin/static-files-3 # Checkout remote branch.