Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

change commit branch after push

//Back all commits
git reset --soft HEAD^
//If you see 'More', try alternatives

//Back one commit
git reset --soft HEAD~1

//Back two commit
git reset --soft HEAD~2
 
PREVIOUS NEXT
Tagged: #change #commit #branch #push
ADD COMMENT
Topic
Name
1+1 =