Skip to content

Instantly share code, notes, and snippets.

@CarlosDanielDev
Created July 8, 2025 18:45
Show Gist options
  • Save CarlosDanielDev/126c79f5ce5ca70e4a241d32841e452e to your computer and use it in GitHub Desktop.
Save CarlosDanielDev/126c79f5ce5ca70e4a241d32841e452e to your computer and use it in GitHub Desktop.
# This is Git's per-user configuration file.
[user]
# Please adapt and uncomment the following lines:
name = name
email = email
[core]
editor = nvim
[alias]
c = !git add --all && git commit -m
cm = !git commit -m
s = !git status -s
l = !git log --pretty=format:'%C(blue)%h%C(red)%d %C(white)%s - %C(cyan)%cn, %C(green)%cr'
amend = !git add --all && git commit --amend --no-edit
count = !git shortlog -s --grep
po = !git pull origin
pushup = !git push origin $(git rev-parse --abbrev-ref HEAD)
b = !git checkout -b
lt = !git ls-remote --tags origin
dlt = !git tag | xargs git tag -d
; drt = !git ls-remote --tags origin | awk '{print $2}' | grep 'refs/tags/' | sed 's/refs\/tags\///' | xargs -I {} git push origin --delete {}
;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment