Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

creating copy of a branch

git checkout -b new_branch old_branch
Comment

how to make copy of branch in git

# initial state 
commit 2 (65bc341)   O  <-- master
                     |
     (more commits) ...
                     |
commit 1 (125afe4)   O  <-- origin/master

# run command
git push origin 125afe4:refs/heads/master-copy

# result
commit 2 (65bc341)   O  <-- master
                     |
     (more commits) ...
                     |
commit 1 (125afe4)   O  <-- origin/master origin/master-copy

Comment

PREVIOUS NEXT
Code Example
Shell :: reload crontab linux 
Shell :: install yarn fedora 
Shell :: error commit is a merge but "no -m" option 
Shell :: heroku update remote url 
Shell :: composer change version 
Shell :: install brave on arch 
Shell :: git sync branches 
Shell :: laravel installation from github 
Shell :: git find merge conflicts 
Shell :: view live log linux 
Shell :: hugo build 
Shell :: break line in md file 
Shell :: git ssh key ubuntu 
Shell :: show remote git 
Shell :: how to install sublime text 3 on ubuntu 20.04 
Shell :: untrack folder git 
Shell :: How to find your ip on debian linux wsl 
Shell :: how to install gimp in ubuntu 
Shell :: how to install xdm ubuntu 20.04 
Shell :: google cloud set project id 
Shell :: find pip (s) path 
Shell :: remove folder from repo but keep locally 
Shell :: diskpart commands 
Shell :: install gui centos 7 
Shell :: ubuntu service start example 
Shell :: to import sass files you first need to install node-sass. react 
Shell :: list only directories in linux 
Shell :: ubuntu dns config 
Shell :: unikey ubuntu 20.04 
Shell :: grep not multiple patterns 
ADD CONTENT
Topic
Content
Source link
Name
4+5 =