Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

git create branch from another branch

# workflow, step by step:
git checkout srcBranch		# where new branch will be created from
git branch newBranch		# newBranch is created from srcBranch
git checkout newBranch		# switch from srcBranch to newBranch

# in a single line:
git checkout -b newBranch srcBranch
git checkout -b newBranch	# srcBranch is optional if already checked out
Comment

create branch from another branch

$ git checkout -b myFeature dev
Comment

can i create a branch inside of another branch in GIT

$ git checkout dev
$ git merge --no-ff myFeature
Comment

create a new branch based on another branch

git checkout -b subbranch_of_branch1 branch1
Comment

can i create a branch inside of another branch in GIT

$ git commit -am "Your message"
Comment

can i create a branch inside of another branch in GIT

$ git push origin dev
$ git push origin myFeature
Comment

git create branch based on another branch

git checkout sprint
git pull
git checkout -b rapportages sprint
git push origin rapportages
git push --set-upstream origin rapportages
Comment

PREVIOUS NEXT
Code Example
Shell :: what is a shell 
Shell :: tail linux 
Shell :: git clone latest commit 
Shell :: ll by date 
Shell :: linux env 
Shell :: git push template 
Shell :: generate certificate ssl 
Shell :: git command line discard changes 
Shell :: powershell array pipe foreach 
Shell :: install composer 2 ubuntu 
Shell :: How to install pymol 
Shell :: how to push changes to branch in git 
Shell :: postgres users can login with any or no password 
Shell :: windows terminal guid 
Shell :: npm not found in zsh 
Shell :: docker wget not found 
Shell :: steps to commit code in github from vscode 
Shell :: how to check user in group linux 
Shell :: error: src refspec develop does not match any 
Shell :: how to change folder case sensitivity windows 10 all subfolder 
Shell :: mac generate ssh private key 
Shell :: install postman 
Shell :: revert last commit git 
Shell :: how to get git stash changes back 
Shell :: bash length of array 
Shell :: add python to path zsh 
Shell :: php enable extension lphp.ini 
Shell :: etherum for ubuntu 
Shell :: check how many container running or not running in docker 
Shell :: ssh copy folder 
ADD CONTENT
Topic
Content
Source link
Name
8+9 =