34 lines
937 B
Bash
34 lines
937 B
Bash
function gi() {
|
|
local IFS=,
|
|
|
|
curl -fL "https://www.toptal.com/developers/gitignore/api/$*"
|
|
}
|
|
|
|
. /usr/share/bash-completion/completions/git
|
|
compalias g='git' \
|
|
ga='git add' \
|
|
gaa='git add --all' \
|
|
gap='git apply' \
|
|
gb='git branch' \
|
|
gbl='git blame -w' \
|
|
gbs='git bisect' \
|
|
gc='git commit --verbose' \
|
|
gca='git commit --verbose --all' \
|
|
gcl='git clone' \
|
|
gco='git checkout' \
|
|
gcp='git cherry-pick' \
|
|
gd='git diff' \
|
|
gdup='git diff @{upstream}' \
|
|
gf='git fetch' \
|
|
gl='git pull' \
|
|
glo='git log --oneline --decorate' \
|
|
gmr='git merge' \
|
|
gp='git push' \
|
|
gr='git remote' \
|
|
grb='git rebase' \
|
|
grev='git revert' \
|
|
grh='git reset' \
|
|
grs='git restore' \
|
|
gst='git status' \
|
|
gsta='git stash'
|