|
1 | 1 | {
|
| 2 | + "abort": "git rebase --abort", |
| 3 | + "aliases": "git config --get-regexp '^alias\\.' | awk '{printf \"%-20s = \",$1; for(i=2;i<=NF;++i) printf \"%s%s\", $i, (i<NF?OFS:ORS)}'", |
2 | 4 | "amend": "git diff-index --cached --quiet HEAD || git commit --amend -C HEAD",
|
3 |
| - "beta": "git release-beta", |
4 | 5 | "cleanup": "git stash save --include-untracked --keep-index; git clean --force -d -x -e \".env*\"; git stash apply --index; git stash drop",
|
5 | 6 | "co": "git commit -m \"$1\"",
|
6 | 7 | "conflict": "git diff --name-only --diff-filter=U",
|
7 | 8 | "continue": "git checkout -- . && git rebase --continue",
|
8 |
| - "crush": "git stash save --keep-index --include-untracked && git reset --hard $(git rev-parse --abbrev-ref --symbolic-full-name @{u})", |
9 | 9 | "editLast": "git commit --amend --edit",
|
| 10 | + "fbeta": "git release-beta", |
| 11 | + "ffeat": "git flow start feature $1", |
| 12 | + "fhotf": "git release-hotfix", |
10 | 13 | "fixable": "git log --oneline $(git rev-parse --abbrev-ref --symbolic-full-name @{u})..HEAD",
|
11 | 14 | "fixAuthor": "git config \"${1---global}\" user.name \"$(git log -2 --pretty=format:'%an' | tail -1)\" && git config \"${1---global}\" user.email \"$(git log -2 --pretty=format:'%ae' | tail -1)\"",
|
12 |
| - "fixConfig": "git config --global --get-regexp '^alias.' | grep '/tmp' | cut -d ' ' -f1 | while read -r alias; do git config --global --unset \"$alias\"; done", |
| 15 | + "fixConfig": "rm -f ~/.gitconfig", |
13 | 16 | "fixMode": "git diff -p -R --no-color | grep -E \"^(diff|(old|new) mode)\" --color=never | git apply --allow-empty --no-index",
|
14 | 17 | "forceable": "git log --oneline $(echo $(git rev-parse --abbrev-ref --symbolic-full-name @{u};git log --merges --first-parent -1 --pretty=%h)| tail -1)..HEAD $*",
|
| 18 | + "fprod": "git release-prod", |
| 19 | + "ftag": "git tag -a $1 -m \"$1\" && git push origin $1", |
15 | 20 | "go": "git commit -m \"$1\" --all",
|
16 |
| - "hfix": "git release-hotfix", |
17 | 21 | "histo": "git log --oneline $(git log --merges --first-parent -1 --pretty=%h) $*",
|
18 | 22 | "ignore": "grep -qxF \"$1\" .gitignore || echo \"$1\" >>.gitignore && git rm --cached \"$1\" 2>/dev/null",
|
19 | 23 | "initFrom": "git clone --origin template --branch master --depth 1 -- $1 $2 && cd $2 && git branch -m master template && git checkout -b master && git checkout -b develop",
|
|
22 | 26 | "isFixup": "git log -1 --pretty=%s | grep -q fixup! && exit 0 || exit 1",
|
23 | 27 | "isRebase": "git rev-parse --git-dir | grep -q rebase-merge || git rev-parse --git-dir | grep -q rebase-apply",
|
24 | 28 | "pf": "git push --force-with-lease",
|
25 |
| - "prod": "git release-prod", |
26 |
| - "rAbort": "git rebase --abort", |
27 |
| - "rCont": "git rebase --continue", |
| 29 | + "refresh": "git stash save --keep-index --include-untracked && git reset --hard $(git rev-parse --abbrev-ref --symbolic-full-name @{u})", |
28 | 30 | "renameTag": "set -e;git tag $2 $1; git tag -d $1;git push origin :refs/tags/$1;git push --tags",
|
29 |
| - "stack": "git commit --amend --no-edit --no-verify -C HEAD", |
| 31 | + "stack": "git diff-index --cached --quiet HEAD || git commit --amend --no-edit --no-verify -C HEAD", |
30 | 32 | "sync": "git fetch --progress --prune --recurse-submodules=no origin && git stash save --keep-index --include-untracked && git merge --ff-only @{u} && git stash pop --index || git stash drop",
|
31 | 33 | "undo": "git reset --soft HEAD^ --"
|
32 | 34 | }
|
0 commit comments