Answers for "git chnage to commit id"

75

change git commit message

git commit --amend -m "New commit message"
Posted by: Guest on March-11-2020
0

git change commit id email

$ git config --global user.name "John Doe"
$ git config --global user.email "[email protected]"
Posted by: Guest on June-19-2020
0

git chnage to commit id

If you reset --hard, it will make your local code and local history be just like it was at that commit. But if you wanted to push this to someone else who has the new history, it would fail:

git reset --hard c14809fa
And if you reset --soft, it will move your HEAD to where they were , but leave your local files etc. the same:

git reset --soft c14809fa
Posted by: Guest on April-19-2022

Browse Popular Code Answers by Language