-
-
Save rozanecm/1cb5f2065456be9660918ebbe5299d1f to your computer and use it in GitHub Desktop.
commit command. Usage: First, move file to /usr/local/bin. Then, "gc" cmd will be available, to which you should pass the git commit msg.
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
# git add all files and amend to last commit, leaving no message behind and pushing to upstream branch. | |
git add . && git commit --amend --no-edit && git push --force-with-lease |
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 | |
git add . && git commit -m "$@" && git push |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment