Skip to content

Commit 3877da9

Browse files
home/.gitconfig: add an alias for git add-commit
1 parent 8f8fb96 commit 3877da9

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

home/.gitconfig

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,11 @@
2222
# Source for this `git lg` "better git log" alias: https://coderwall.com/p/euwpig/a-better-git-log
2323
lg = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit
2424

25+
# See:
26+
# 1. [original source] https://stackoverflow.com/a/4299159/4561887
27+
# 1. [my answer] https://stackoverflow.com/a/71150235/4561887
28+
add-commit = !git add -A && git commit
29+
2530
# For 'git blametool'. See: "eRCaGuy_dotfiles/useful_scripts/git-blametool.sh".
2631
# Example:
2732
# - Create an entry below with: `git config --global blametool.editor subl`

0 commit comments

Comments
 (0)