Answers for "git uncommit changes before push"

2

git check for uncommitted changes

//CHECK FOR UNCOMMITED CHANGES
git status -s

//If there are no changes has no output
//If there are changes are listed the modified files
Posted by: Guest on July-28-2021
1

git uncommit last commit but keep changes

# https://stackoverflow.com/a/44672195/3013522
git reset --soft HEAD~
Posted by: Guest on December-07-2021

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language