git change 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 branch$ git checkout feature$ git switch <existing_branch>
$ git switch -c <non_existing_branch>$ git branch iss53
$ git checkout iss53
Also in Shell:
- Title
- clipboard in ubuntu
- Category
- Shell
- Title
- linux make executable
- Category
- Shell
- Title
- how to check swap memory in linux
- Category
- Shell
- Title
- ignore git ignore
- Category
- Shell
- Title
- install postfix dovecot ubuntu 16.04
- Category
- Shell
- Title
- linux check disk space
- Category
- Shell
- Title
- how to disconnect local repo from remote master
- Category
- Shell
- Title
- git remove branch
- Category
- Shell
- Title
- composer autoload dump
- Category
- Shell
- Title
- copy folders linux
- Category
- Shell
- Title
- mac brew: command not found
- Category
- Shell
- Title
- view permissions linux
- Category
- Shell
- Title
- linux unzip with password
- Category
- Shell
- Title
- find text in any file linux
- Category
- Shell
- Title
- foreach loop powershell
- Category
- Shell
- Title
- edit branch name git
- Category
- Shell
- Title
- how to add extension to all files terminal
- Category
- Shell
- Title
- delete a file in cmd windows
- Category
- Shell
- Title
- git how to delete origin branch
- Category
- Shell
- Title
- install putty on ubuntu
- Category
- Shell
- Title
- react native install
- Category
- Shell
- Title
- how to convert a multy digit array into a whole number
- Category
- Shell
- Title
- git push existing code to new repository
- Category
- Shell
- Title
- push code to github command line
- Category
- Shell