Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

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
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #git #chnage #commit #id
ADD COMMENT
Topic
Name
1+2 =