Skip to content

Instantly share code, notes, and snippets.

@jorge8168711
Created June 6, 2023 23:27
Show Gist options
  • Select an option

  • Save jorge8168711/9bf0282e6447349f1e9d48d12d4abf95 to your computer and use it in GitHub Desktop.

Select an option

Save jorge8168711/9bf0282e6447349f1e9d48d12d4abf95 to your computer and use it in GitHub Desktop.

Revisions

  1. jorge8168711 created this gist Jun 6, 2023.
    15 changes: 15 additions & 0 deletions gitalias.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,15 @@
    lg = !git log --pretty=format:\"%C(magenta)%h%Creset -%C(red)%d%Creset %s %C(dim green)(%cr) [%an]\" --abbrev-commit -30
    a = add
    co = checkout
    cob = checkout -b
    st = status -sb
    mr = merge
    cm = commit -mç
    cam = commit -a -m
    gl = config --global -l
    del = branch -D
    br = branch --format='%(HEAD) %(color:yellow)%(refname:short)%(color:reset) - %(contents:subject) %(color:green)(%(committerdate:relative)) [%(authorname)]' --sort=-committerdate
    undo = reset HEAD~1 --mixed
    res = !git reset --hard
    done = !git push origin HEAD
    today = log --since=7am --author='Jorge Barron'