Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

create new branch with commit id

git checkout -b <new branch> <commit id>
Comment

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 :: base64 encode linux 
Shell :: open path using terminal ubuntu 
Shell :: how to list brew packages installed 
Shell :: how to hide hostname mac terminal 
Shell :: start powershell as different user 
Shell :: install discord 
Shell :: git merge main into branch 
Shell :: docker logs 
Shell :: how to get deployment token from firebase 
Shell :: install packages from txt 
Shell :: linux how to move file to another directory 
Shell :: command to lock a user 
Shell :: git revert one file 
Shell :: Please ensure that the SDK and/or project is installed in a location that has read/write permissions for the current user. 
Shell :: git tutorial 
Shell :: added changes to a specific commit 
Shell :: gcloud app deploy 
Shell :: pacman remove package 
Shell :: how to call a batch file from another batch file 
Shell :: find rm files older than 30 days 
Shell :: github add multiple credentials windows 
Shell :: "GH001: Large files detected. You may want to try Git Large File Storage" error fix 
Shell :: Id field in Model Django 
Shell :: show drives linux 
Shell :: upgrade docker-compose version 
Shell :: powershell get all computers in ou 
Shell :: how to unzip using tar 
Shell :: git lost changes after reset --keep 
Shell :: download ubuntu 16.04 iso 64-bit 
Shell :: git merge example 
ADD CONTENT
Topic
Content
Source link
Name
8+6 =