Skip to content

Instantly share code, notes, and snippets.

@Alex1304
Created August 5, 2023 15:30
Show Gist options
  • Save Alex1304/4dc0757c9764f9958aef1e857634f6f3 to your computer and use it in GitHub Desktop.
Save Alex1304/4dc0757c9764f9958aef1e857634f6f3 to your computer and use it in GitHub Desktop.
Git Aliases
gac() {
git add . && git commit -m "$1"
}
gacp() {
git add . && git commit -m "$1" && git push
}
gam() {
git add . && git commit --no-edit --amend
}
gampf() {
git add . && git commit --no-edit --amend && git push --force
}
gpf() {
git push --force
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment