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 :: du linux several directories 
Shell :: find pip install directory 
Shell :: mac terminal hide username 
Shell :: how to unstage changes in git 
Shell :: git fetch and checkout branch 
Shell :: error: The following untracked working tree files would be overwritten by merge: 
Shell :: copy all files except one linux 
Shell :: packet tracer ubuntu 
Shell :: remove tracked files git 
Shell :: generate pfx certificate 
Shell :: install safari in ubunut 
Shell :: bash redirect all output 
Shell :: infinite loop bash 
Shell :: set email git 
Shell :: windows download torchvision 
Shell :: edit global git config file 
Shell :: add a cookie to curl 
Shell :: script to kill a process in windows 
Shell :: get podman ubuntu 
Shell :: How to Get VS Code Extensions as .ps1 for Installing to Another Computer 
Shell :: linux adb 
Shell :: git add tag 
Shell :: fatal error: ft2build.h: No such file or directo 
Shell :: rename python3 to python 
Shell :: brew install mongodb 
Shell :: update submodule git 
Shell :: ffmpeg cut video without re encoding 
Shell :: wireshark para ubuntu 
Shell :: install bootstrap scss 
Shell :: linux convert mp3 to ogg 
ADD CONTENT
Topic
Content
Source link
Name
3+9 =