Answers for "how rename commit in my branch not pushed"

1

rename a commit pushed

git commit --amend -m "Your new message here"
Posted by: Guest on June-28-2021
0

rename a branch alredy pushed

#checkout to the branch
git checkout old_branch_name

#in the same branch run the command
git branch -m new_branch_name
Posted by: Guest on February-11-2021

Code answers related to "how rename commit in my branch not pushed"

Browse Popular Code Answers by Language