how to switch branches in git
$ git branch$ git checkout <existing_branch>
$ git checkout -b <new_branch>[git checkout "branch_name"]
is another way to say:
[git checkout -b branch_name origin/branch_name]
in case "branch_name" exists only remotely.
[git checkout -b branch_name origin/branch_name] is useful in case you have multiple remotes.
Regarding [git checkout origin 'another_branch'] I'm not sure this is possible, AFAK you can do this using "fetch" command -- [git fetch origin 'another_branch']git checkout [branch name]
Also in Shell:
- pull old version git
- delete a deployment in kubernetes
- android_home ubuntu
- install flask
- server information in powershell
- cmd for loop
- kill process on port windows
- réinstaller interface graphique debian
- pip install kivy error
- install zsh debian
- undo add stage git
- upgrade node version
- git remove Untracked files
- shell set environment variable
- delete git tag remote
- terminal delete fle
- git push existing code to new repository
- git remove file from history
- install bully kali
- Error: "could not find a temporary directory"
- add git user and email
- background script linux
- disable open file explorer erverytime i connect usb ubuntu
- linux see when file created