Skip to content

Instantly share code, notes, and snippets.

@syed-ahmad
Last active June 3, 2024 11:24
Show Gist options
  • Select an option

  • Save syed-ahmad/6bcd4e4e5508adb13c27412bc3ef7720 to your computer and use it in GitHub Desktop.

Select an option

Save syed-ahmad/6bcd4e4e5508adb13c27412bc3ef7720 to your computer and use it in GitHub Desktop.

Revisions

  1. syed-ahmad revised this gist Jun 3, 2024. No changes.
  2. syed-ahmad created this gist Jun 3, 2024.
    11 changes: 11 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,11 @@
    [alias]
    s = status
    co = checkout
    cob = checkout -b
    del = branch -D
    br = branch --format='%(HEAD) %(color:yellow)%(refname:short)%(color:reset) - %(contents:subject) %(color:green)(%(committerdate:relative)) [%(authorname)]' --sort=-committerdate
    save = !git add -A && git commit -m 'chore: savepoint'
    undo = reset HEAD~1 --mixed
    res = !git reset --hard
    done = !git push origin HEAD
    lg = !git log --pretty=format:\"%C(magenta)%h%Creset -%C(red)%d%Creset %s %C(dim green)(%cr) [%an]\" --abbrev-commit -30