Git: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
| Line 10: | Line 10: | ||
<source lang="bash"> | <source lang="bash"> | ||
git config --global core.editor "vim" | git config --global core.editor "vim" | ||
</source> | |||
= Others = | |||
<source lang="bash"> | |||
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. | |||
</source> | </source> | ||
Revision as of 08:14, 14 August 2018
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.