Skip to content

Instantly share code, notes, and snippets.

@rozanecm
Last active February 17, 2023 19:26
Show Gist options
  • Save rozanecm/1cb5f2065456be9660918ebbe5299d1f to your computer and use it in GitHub Desktop.
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.
# 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
#!/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