Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

commit to a new branch

git checkout -b your-new-branch
git add <files>
git commit -m <message>

First, checkout your new branch. 
Then add all the files you want to commit to staging. 
Lastly, commit all the files you just added. 
You might want to do a git push origin your-new-branch afterward so your changes show up on the remote.
Comment

create new branch from commit

git branch branch_name <commit-hash>

git checkout branch_name
git push --set-upstream origin branch_name
Comment

git create branch from commit

git branch branchname <sha1-of-commit>
Comment

PREVIOUS NEXT
Code Example
Shell :: how to undo a commit 
Shell :: jekyll run 
Shell :: git clone and change the folder name 
Shell :: git config user settup 
Shell :: install tailwindcss nodejs 
Shell :: mysql query result to file 
Shell :: remove space at end of line file 
Shell :: unable to locate a java runtime that supports javaws 
Shell :: install node js redhat 8 
Shell :: kubernetes delete everything 
Shell :: delete all local images docker 
Shell :: present working directory in shell script 
Shell :: styled-components 
Shell :: git delete unstaged files 
Shell :: how to switch branch 
Shell :: clone using token github 
Shell :: ssh keygen 
Shell :: install safari in ubunut 
Shell :: java path ubuntu 20.04 
Shell :: pip install package to specific directory 
Shell :: windows laravel installer 
Shell :: git clone different name 
Shell :: how to reboot kali linux with commands 
Shell :: how to push folder into private repo github 
Shell :: ansible choose host file 
Shell :: fusion 360 on linux 
Shell :: git checkout multiple branches at once 
Shell :: microsoft todo for linux 
Shell :: npm install typeorm 
Shell :: git pull from another branch 
ADD CONTENT
Topic
Content
Source link
Name
3+3 =