created on | June 22, 2022 |
last modified on | June 27, 2022 |
basic operations
- create a branch –
- checkout a branch –
- list local branches –
- list remote branches –
- list local and remote branches –
- delete a local branch –
- delete a remote branch –
create and checkout a branch in one go
git checkout -b <new branch>
connecting local branches to upstream
git push -u origin new-branch
is shorthand for