Horje
git change branch Code Example
how to check in which brach we are in git
git branch -a # it will show an astrick * like *master
git branch --show-current # source == git remote --help
Source: git-scm.com
createa. branch off of development git
//when on branch 'dev' make branch 'myFeature' off of 'dev'
git checkout -b myFeature dev
git switch branch
git switch branch_name

git checkout branch_name 
create new git branch and switch to it
git checkout -b mybranch 
how to switch branches in git
- git checkout branch_name --> goes to branch that already exists
- git checkout -b <branch_name> --> creates a new branch and switches to it.
git change branch
git switch <branch_name>	 // switches to branch

git checkout <branch_name> 	// deletes file that were not pushed and just copies the branch to local repo




Shell

Related
ubuntu navigate to directory in windows Code Example ubuntu navigate to directory in windows Code Example
git checkout previous commit HEAD Code Example git checkout previous commit HEAD Code Example
bash maximum running time Code Example bash maximum running time Code Example
docker copy file not found Code Example docker copy file not found Code Example
wsl cd into another drive Code Example wsl cd into another drive Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
8