Horje
git create branch with specific commit Code Example
git create branch with specific commit
 
# Create a new branch from previous commit's hash
git branch develop 04c900c
 
# Push the new branch to remote repository
git push --set-upstream origin develop
 
# Checkout the new branch
git checkout develop
 
git branch from commit
You can create the branch via a hash:

git branch branchname <sha1-of-commit>
Or by using a symbolic reference:

git branch branchname HEAD~3
To checkout the branch when creating it, use

git checkout -b branchname <sha1-of-commit or HEAD~3>




Shell

Related
linux delete user password Code Example linux delete user password Code Example
run google chrome from terminal Code Example run google chrome from terminal Code Example
how to uninstall heroku cli Code Example how to uninstall heroku cli Code Example
pip install hashlib Code Example pip install hashlib Code Example
how to uninstall zsh on mac Code Example how to uninstall zsh on mac Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
9