Skip to content

Instantly share code, notes, and snippets.

@israelcena
Last active October 20, 2025 20:24
Show Gist options
  • Select an option

  • Save israelcena/dc99804845f959342c0b1299db6efe77 to your computer and use it in GitHub Desktop.

Select an option

Save israelcena/dc99804845f959342c0b1299db6efe77 to your computer and use it in GitHub Desktop.
git config file
[user]
name = israelcena
email = israelsjm@gmail.com
signingkey =
[commit]
gpgsign = true
[init]
defaultBranch = main
[core]
editor = code --wait
[alias]
s = !git status -s
c = !git commit -S -m
ac = !git add --all && git commit -S -m
acp = !git add --all && git commit -S -m && git push
acm = "!f() { PULL_TITLE=\"$1\"; PULL_BODY=\"$1\"; if [ $# -gt 1 ]; then PULL_BODY=\"${@:2}\"; fi; git add --all && git commit -S -m \"$PULL_TITLE\" && gh pr create --title \"$PULL_TITLE\" --body \"$PULL_BODY\" && gh pr merge --rebase --auto --delete-branch; }; f"
l = !git log --graph --pretty=format:'%C(auto)%h %C(bold yellow)%d%Creset%C(white)%s%Creset - %C(cyan)%cn%Creset, %C(green)%cr'
[credential]
helper = /mnt/c/Program\\ Files/Git/mingw64/bin/git-credential-manager.exe
@israelcena
Copy link
Author

updated for use github cli, and create pr and merge auto

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment