Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

git create branch from master

# 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

command to create a new branch in git

$ git checkout -b <branch-name>
Comment

git create branch and checkout one command

# git create branch and checkout one command
git checkout -b <branch_name>
Comment

PREVIOUS NEXT
Code Example
Shell :: bash concatenate string variables 
Shell :: delete a branch in git command 
Shell :: number all files in a folder 
Shell :: bash for in loop 
Shell :: pwa install 
Shell :: git reset commit before file 
Shell :: rman commands 
Shell :: does npm install takes arguments 
Shell :: add ufw rule from 
Shell :: remote host identification has changed 
Shell :: magento 2.4 install command line 
Shell :: how to move git clone to another git repo 
Shell :: create json from terminal 
Shell :: find the index of a substring 
Shell :: docker network Rabbitmq 
Shell :: insert image into github wiki 
Shell :: what is sudo in linux 
Shell :: winscp zip command 
Shell :: Check path file exist 
Shell :: Amend The Most Recent Commit in git command 
Shell :: kubectl kubernetes port forward 
Shell :: apt upgrade full 
Shell :: powershell make directory 
Shell :: command to install any package using Pip 
Shell :: git create new repo from branch 
Shell :: pgadmin terminal connect 
Shell :: add line to beginning of file shell script 
Shell :: tinymce vue 3 
Shell :: substring in string shell 
Shell :: Set Up Your Username and Email in Git Command 
ADD CONTENT
Topic
Content
Source link
Name
9+4 =