I checkout between multiple local repo, since I work on multiple projects. Before every check out I need to commit, which means I'm unable to keep my last commit msg same as that on git cloud repo. I need some help.
Git commands :
- revert or uncommit last changes but keep in staged area
- Move changes from staged to unstaged area
- Delete/remove unstaged changes
CodePudding user response:
To the point, commands for you:
- git reset --soft HEAD~1
- git reset
- git checkout .