I have 2 branches master
and bugfix
. my current branch is bugfix
, where I have committed my changes (not pushed), now I need to reset this commit.
If I do reset my commit, will it affect other commits in master
branch?
Actually I want to remove this commit.
git reset --soft 734e3a0
I am using SourceTree.
You need to run this command in source tree terminal git reset --soft HEAD~1
this command push back your commit in your sourtree. then you take latest pull and then you can commit your code.