Git add/remove remote branch
mouse 230 · person cloud · link
Last update
2018-04-03
2018
04-03
« — »
1
2
3
4
5
6
7
8
9
10
11
git checkout -b <branch>          # create branch
git push -u origin <branch>       # push branch to remote

# pull the new branch from another pc:
git fetch                         # download all data
git branch -v -a                  # shows avaiable branches
git checkout <branch>

git push origin --delete <branch> # delete remote branch
git push origin :<branch>         # delete remote branch (alt.)
git branch -d <branch>            # delete local branch