Last active
July 30, 2019 18:55
-
-
Save thiagosanches/092dec081f7b58c498bd7ff38d47561b to your computer and use it in GitHub Desktop.
It's useful when you have to do some commits just to test, but it will not generate a lot of commit messages, since it's going "back" and generating a new commit
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Important: Only use if you are working on a branch by yourself otherwise it will overwrite someone updates | |
git reset --soft HEAD~1 \ | |
&& git add . && git commit -m "$1" \ | |
&& git push --force origin | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment