generated from devcontainers/feature-starter
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathalias.json
More file actions
126 lines (126 loc) · 5.28 KB
/
alias.json
File metadata and controls
126 lines (126 loc) · 5.28 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
{
"abort": {
"cmd": "git rebase --abort",
"help": "Abort an ongoing rebase."
},
"amend": {
"cmd": "git diff-index --cached --quiet HEAD && exit 1 || git commit --amend --reset-author -C HEAD",
"help": "Amend the last commit if there are staged changes."
},
"beta": {
"cmd": "git release-beta",
"help": "Run release-beta command."
},
"cleanup": {
"cmd": "git stash save --include-untracked --keep-index; git clean --force -d -x -e \".env*\"; git stash apply --index; git stash drop",
"help": "Stash all changes, clean untracked files except .env*, and restore stash."
},
"clear": {
"cmd": "git status --porcelain | awk '$1 ~ /^[AM?]/ {print $2}' | xargs -I {} sh -c 'test ! -s \"{}\" && echo \"Deleting empty file: {}\" && rm \"{}\"'",
"help": "Delete all empty files in the repository."
},
"conflict": {
"cmd": "git diff --name-only --diff-filter=U",
"help": "List files with merge conflicts."
},
"continue": {
"cmd": "git checkout -- . && git rebase --continue",
"help": "Restore all files and continue a rebase."
},
"dt": {
"cmd": "git tag -l \"$1\" | xargs -r -n 1 sh -c 'git push --delete origin \"\\$0\"; git tag -d \"\\$0\"'",
"help": "Delete a tag locally and remotely."
},
"feat": {
"cmd": "git flow feature start $1",
"help": "Start a new git flow feature branch."
},
"fixable": {
"cmd": "git log --oneline $(git rev-parse --abbrev-ref --symbolic-full-name @{u} || git merge-base HEAD develop)..HEAD",
"help": "Show commits ahead of upstream."
},
"fixAliases": {
"cmd": "git config remove-section --global alias; git config remove-section --local alias",
"help": "Remove all git aliases from global/local config."
},
"forceable": {
"cmd": "git log --oneline $(echo $(git rev-parse --abbrev-ref --symbolic-full-name @{u} || git merge-base HEAD develop;git log --merges --first-parent -1 --pretty=%h)| tail -1)..HEAD $*",
"help": "Show commits since last merge or upstream."
},
"fu": {
"cmd": "git fix up",
"help": "Fix up the specified commit with staged changes."
},
"go": {
"cmd": "git commit -m \"$1\" --all",
"help": "Commit all changes with a message."
},
"hfix": {
"cmd": "git release-hotfix",
"help": "Run release-hotfix command."
},
"histo": {
"cmd": "git log --oneline $(git log --merges --first-parent -1 --pretty=%h) $*",
"help": "Show log since last merge."
},
"ignore": {
"cmd": "grep -qxF \"$1\" .gitignore || echo \"$1\" >>.gitignore && git rm --cached \"$1\" 2>/dev/null",
"help": "Add file to .gitignore and untrack it."
},
"initFrom": {
"cmd": "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",
"help": "Clone as template, create master and develop branches."
},
"isChanged": {
"cmd": "git diff --name-only HEAD@{1} HEAD | grep -q \"^$1\" && exit 0 || exit 1",
"help": "Check if file changed between last two HEADs."
},
"isDirty": {
"cmd": "git diff --name-only | grep -q \"^$1\" && exit 0 || exit 1",
"help": "Check if file has unstaged changes."
},
"isFixup": {
"cmd": "git log -1 --pretty=%s | grep -q fixup! && exit 0 || exit 1",
"help": "Check if last commit is a fixup commit."
},
"isRebase": {
"cmd": "git rev-parse --git-dir | grep -q rebase-merge || git rev-parse --git-dir | grep -q rebase-apply",
"help": "Check if a rebase is in progress."
},
"isUncommited": {
"cmd": "git fetch --progress --prune --recurse-submodules=no origin >/dev/null && git diff-index --quiet HEAD -- && exit 0 || exit 1",
"help": "Check if file has uncommitted changes."
},
"pf": {
"cmd": "git push --force-with-lease $1",
"help": "Push with force-with-lease."
},
"pn": {
"cmd": "git push --no-verify",
"help": "Push without running pre-push hooks."
},
"prod": {
"cmd": "git release-prod",
"help": "Run release-prod command."
},
"refresh": {
"cmd": "git stash save --keep-index --include-untracked && git reset --hard $(git rev-parse --abbrev-ref --symbolic-full-name @{u})",
"help": "Stash, reset to upstream, and restore stash."
},
"renameTag": {
"cmd": "set -e;git tag $2 $1; git tag -d $1;git push origin :refs/tags/$1;git push --tags",
"help": "Rename a tag locally and remotely."
},
"stack": {
"cmd": "git diff-index --cached --quiet HEAD || git commit --amend --reset-author --no-edit --no-verify -C HEAD",
"help": "Amend last commit without editing message."
},
"sync": {
"cmd": "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",
"help": "Fetch, stash, fast-forward merge, and restore stash."
},
"undo": {
"cmd": "git reset --soft HEAD^ --",
"help": "Undo last commit, keep changes staged."
}
}