Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/wbaldoumas/git-aliases
Storing my favorite Git aliases where I can easily access them.
https://github.com/wbaldoumas/git-aliases
Last synced: about 13 hours ago
JSON representation
Storing my favorite Git aliases where I can easily access them.
- Host: GitHub
- URL: https://github.com/wbaldoumas/git-aliases
- Owner: wbaldoumas
- Created: 2024-05-12T23:22:16.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2024-05-12T23:39:18.000Z (6 months ago)
- Last Synced: 2024-05-13T00:28:59.573Z (6 months ago)
- Size: 1.95 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# git-aliases
Storing my favorite Git aliases where I can easily access them.```ini
s = status
c = "!git add . && git commit -m"
co = checkout
cob = checkout -b
com = checkout main
pom = pull origin main
upmain = "!git com && git pom"
new = "!git com && git pom && git cob"
del = branch -D
rename = branch -m
diffn = diff --name-only main...HEAD
diffx = diff --full-index main
diffxo = "!git diffx > output.diff"
clear = "!git checkout -- . && git clean -f"
rim = rebase -i main
upbase = "!git com && git pom && git co - && git rim"
upmerge = "!git fetch && git merge origin/main"
pusho = !git push origin $(git rev-parse --abbrev-ref)
res = reset --hard HEAD~1
publish = "!git upbase && git upremote"
br="!git for-each-ref --sort='-authordate' --format='%(authordate)%09%(objectname:short)%09%(refname)' refs/heads | sed -e 's-refs/heads/--'"
upremote = "!git push --delete origin $(git rev-parse --abbrev-ref HEAD) && git push origin $(git rev-parse --abbrev-ref HEAD)"
history = "!git log --author=\"William Baldoumas\""
delete-stale = "!git branch --format='%(refname:short) %(committerdate:relative)' --sort=committerdate | awk '$1 != \"main\" && $2~/^.* days ago$/ && $2 > \"'$1' days ago\" {print $1}' | xargs -r git branch -D"
lol = log --graph --decorate --pretty=oneline --abbrev-commit
aliases = config --get-regexp alias
```