I did a commit in Android Studio but I want to make more changes but I also don't want to do another commit.
What I want to do, is to get back my changes here and delete this commit without pushing it to Github.
Can someone help me with this issue?
I did a commit in Android Studio but I want to make more changes but I also don't want to do another commit.
What I want to do, is to get back my changes here and delete this commit without pushing it to Github.
Can someone help me with this issue?
 
    
     
    
    get the desired commit hash by using on the BRANCH_NAME which contains the commit you want :
git log 
copy the hash and use this command
git checkout COMMIT_HASH
then will generate a temp branch, to save it you can use
git switch -c NEW_BRANCH_NAME
to rollback your old branch to this commit run the following two commands
git checkout BRANCH_NAME
git merge NEW_BRANCH_NAME
