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

creating a branch from a commit

$ git branch <branch-name> <hash>
Comment

PREVIOUS NEXT
Code Example
Shell :: how to deploy to heroku 
Shell :: install cyberpanel centos 7 
Shell :: linux run task in background 
Shell :: how to open folder in files from terminal linux 
Shell :: linux how to find files with broken link 
Shell :: env file added to gitignore but git still tracking it 
Shell :: git clone a specific release 
Shell :: digitalocean connect via ssh 
Shell :: git push default 
Shell :: install xq command 
Shell :: install brave browser download 
Shell :: keytool check for keys in keystore 
Shell :: how to create a github account 
Shell :: how to merge a branch into another branch 
Shell :: run MongoDB manually as a background process macos 
Shell :: how to get visual studio code on a raspberry pi 4 
Shell :: push an existing git repository 
Shell :: what is the option to sort by file size in unix 
Shell :: adb shell 
Shell :: linux delete files in folders without deleting the folder 
Shell :: docker pull command 
Shell :: install admin lte in laravel 
Shell :: git ignore global 
Shell :: how to disable ssh in linux 
Shell :: sed remove all line breaks 
Shell :: how to image an entire disk on linux 
Shell :: how to install vim on macos 
Shell :: Install MySQL FreeBSD 
Shell :: kali linux ping ip 
Shell :: mongodb database not connected docker 
ADD CONTENT
Topic
Content
Source link
Name
7+9 =