Answers for "add particular commit to a branch"

1

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
 
Posted by: Guest on August-20-2020
0

push particular commit in git

git push <remotename> <commit SHA>:<remotebranchname>
Posted by: Guest on January-27-2022

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language