@sebastienrousseau/dotfiles 0.2.461 → 0.2.462

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (141) hide show
  1. package/README.md +115 -91
  2. package/dist/Makefile +3 -3
  3. package/dist/bin/backup.js +3 -2
  4. package/dist/bin/backup.js.map +1 -1
  5. package/dist/bin/constants.d.ts +2 -2
  6. package/dist/bin/constants.js +1 -1
  7. package/dist/bin/copy.js +2 -1
  8. package/dist/bin/copy.js.map +1 -1
  9. package/dist/bin/dotfiles.js +1 -1
  10. package/dist/bin/dotfiles.js.map +1 -1
  11. package/dist/bin/download.d.ts +2 -2
  12. package/dist/bin/download.d.ts.map +1 -1
  13. package/dist/bin/download.js +2 -1
  14. package/dist/bin/download.js.map +1 -1
  15. package/dist/bin/index.js +1 -1
  16. package/dist/bin/transfer.js +1 -1
  17. package/dist/bin/unpack.js +1 -1
  18. package/dist/filesizes.txt +332 -288
  19. package/dist/lib/aliases/archives/archives.aliases.sh +42 -0
  20. package/dist/lib/aliases/clear/clear.aliases.sh +23 -0
  21. package/dist/lib/aliases/configuration/configuration.aliases.sh +12 -0
  22. package/dist/lib/aliases/default/default.aliases.sh +36 -173
  23. package/dist/lib/aliases/dig/dig.aliases.sh +19 -0
  24. package/dist/lib/aliases/diskusage/diskusage.aliases.sh +16 -0
  25. package/dist/lib/aliases/editor/editor.aliases.sh +19 -0
  26. package/dist/lib/aliases/find/find.aliases.sh +24 -0
  27. package/dist/lib/aliases/gcloud/gcloud.aliases.sh +119 -117
  28. package/dist/lib/aliases/git/git.aliases.sh +339 -335
  29. package/dist/lib/aliases/gnu/gnucoreutls-aliases.sh +111 -0
  30. package/dist/lib/aliases/heroku/heroku.aliases.sh +712 -711
  31. package/dist/lib/aliases/interactive/interactive.aliases.sh +14 -0
  32. package/dist/lib/aliases/jekyll/jekyll.aliases.sh +48 -47
  33. package/dist/lib/aliases/list/list.aliases.sh +33 -0
  34. package/dist/lib/aliases/make/make.aliases.sh +15 -0
  35. package/dist/lib/aliases/mkdir/mkdir.aliases.sh +13 -0
  36. package/dist/lib/aliases/navigation/navigation.aliases.sh +23 -0
  37. package/dist/lib/aliases/npm/npm.aliases.sh +24 -0
  38. package/dist/lib/aliases/permission/permission.aliases.sh +28 -0
  39. package/dist/lib/aliases/pnpm/pnpm.aliases.sh +37 -38
  40. package/dist/lib/aliases/ps/ps.aliases.sh +12 -0
  41. package/dist/lib/aliases/rsync/rsync.aliases.sh +9 -0
  42. package/dist/lib/aliases/rust/rust.aliases.sh +50 -0
  43. package/dist/lib/aliases/subversion/subversion.aliases.sh +41 -119
  44. package/dist/lib/aliases/sudo/sudo.aliases.sh +11 -0
  45. package/dist/lib/aliases/tmux/tmux.aliases.sh +12 -10
  46. package/dist/lib/aliases/update/update.aliases.sh +38 -0
  47. package/dist/lib/aliases/uuid/uuid.aliases.sh +10 -0
  48. package/dist/lib/aliases/wget/wget.aliases.sh +13 -0
  49. package/dist/lib/aliases.sh +6 -3
  50. package/dist/lib/configurations/bash/bashrc +3 -3
  51. package/dist/lib/configurations/curl/curlrc +2 -2
  52. package/dist/lib/configurations/default/color.sh +2 -2
  53. package/dist/lib/configurations/default/constants.sh +9 -9
  54. package/dist/lib/configurations/default/editor.sh +2 -2
  55. package/dist/lib/configurations/default/prompt.sh +2 -2
  56. package/dist/lib/configurations/input/inputrc +2 -2
  57. package/dist/lib/configurations/nano/nanorc +2 -2
  58. package/dist/lib/configurations/profile/profile +2 -2
  59. package/dist/lib/configurations/tmux/default +2 -2
  60. package/dist/lib/configurations/tmux/display +2 -2
  61. package/dist/lib/configurations/tmux/linux +2 -2
  62. package/dist/lib/configurations/tmux/navigation +2 -2
  63. package/dist/lib/configurations/tmux/panes +2 -2
  64. package/dist/lib/configurations/tmux/theme +3 -3
  65. package/dist/lib/configurations/tmux/tmux +2 -2
  66. package/dist/lib/configurations/tmux/vi +2 -2
  67. package/dist/lib/configurations/vim/vimrc +1 -1
  68. package/dist/lib/configurations/wget/wgetrc +2 -2
  69. package/dist/lib/configurations/zsh/zshrc +5 -5
  70. package/dist/lib/configurations.sh +2 -2
  71. package/dist/lib/functions/cdls.sh +3 -10
  72. package/dist/lib/functions/changediskpwd.tmp +3 -3
  73. package/dist/lib/functions/code.tmp +3 -3
  74. package/dist/lib/functions/countdown.tmp +2 -2
  75. package/dist/lib/functions/curlheader.sh +5 -5
  76. package/dist/lib/functions/curltime.sh +6 -6
  77. package/dist/lib/functions/encode64.sh +2 -2
  78. package/dist/lib/functions/environment.sh +2 -2
  79. package/dist/lib/functions/extract.sh +2 -2
  80. package/dist/lib/functions/genpwd.sh +2 -2
  81. package/dist/lib/functions/goto.sh +2 -2
  82. package/dist/lib/functions/hidehiddenfiles.sh +2 -2
  83. package/dist/lib/functions/history-all.tmp +2 -2
  84. package/dist/lib/functions/hostinfo.sh +2 -2
  85. package/dist/lib/functions/hstats.sh +2 -2
  86. package/dist/lib/functions/httpdebug.sh +2 -2
  87. package/dist/lib/functions/keygen.sh +2 -2
  88. package/dist/lib/functions/last.sh +2 -2
  89. package/dist/lib/functions/logout.sh +2 -2
  90. package/dist/lib/functions/lowercase.sh +2 -2
  91. package/dist/lib/functions/macos.sh +2 -2
  92. package/dist/lib/functions/matrix.sh +2 -2
  93. package/dist/lib/functions/{mcd.sh → mcd.tmp} +2 -2
  94. package/dist/lib/functions/mount_read_only.sh +2 -2
  95. package/dist/lib/functions/myproc.sh +2 -2
  96. package/dist/lib/functions/prependpath.sh +2 -2
  97. package/dist/lib/functions/print.tmp +2 -2
  98. package/dist/lib/functions/ql.sh +2 -2
  99. package/dist/lib/functions/rd.sh +2 -2
  100. package/dist/lib/functions/remove_disk.sh +2 -2
  101. package/dist/lib/functions/ren.sh +2 -2
  102. package/dist/lib/functions/rm.tmp +2 -2
  103. package/dist/lib/functions/rps.tmp +2 -2
  104. package/dist/lib/functions/showhiddenfiles.sh +2 -2
  105. package/dist/lib/functions/size.sh +2 -2
  106. package/dist/lib/functions/stopwatch.sh +2 -2
  107. package/dist/lib/functions/trash.tmp +2 -2
  108. package/dist/lib/functions/tree.tmp +2 -2
  109. package/dist/lib/functions/uppercase.sh +2 -2
  110. package/dist/lib/functions/uuidgen.tmp +1 -1
  111. package/dist/lib/functions/view-source.sh +2 -2
  112. package/dist/lib/functions/vscode.sh +2 -2
  113. package/dist/lib/functions/whoisport.sh +2 -2
  114. package/dist/lib/functions/zipf.sh +2 -2
  115. package/dist/lib/functions.sh +2 -2
  116. package/dist/lib/history.sh +2 -2
  117. package/dist/lib/paths/ant/ant.paths.sh +2 -2
  118. package/dist/lib/paths/default/default.paths.sh +2 -2
  119. package/dist/lib/paths/homebrew/homebrew.paths.sh +2 -2
  120. package/dist/lib/paths/java/java.paths.sh +3 -3
  121. package/dist/lib/paths/maven/maven.paths.sh +2 -2
  122. package/dist/lib/paths/node/node.paths.sh +2 -2
  123. package/dist/lib/paths/nvm/nvm.paths.sh +2 -2
  124. package/dist/lib/paths/pnpm/pnpm.paths.sh +2 -2
  125. package/dist/lib/paths/python/python.paths.sh +2 -2
  126. package/dist/lib/paths/ruby/ruby.paths.sh +2 -2
  127. package/dist/lib/paths/tmux/tmux.paths.sh +2 -2
  128. package/dist/lib/paths.sh +2 -2
  129. package/dist/scripts/backup.sh +2 -2
  130. package/dist/scripts/banner.sh +2 -2
  131. package/dist/scripts/build.sh +2 -2
  132. package/dist/scripts/clean.sh +2 -2
  133. package/dist/scripts/compile.sh +2 -2
  134. package/dist/scripts/copy.sh +2 -2
  135. package/dist/scripts/dotfiles.sh +2 -2
  136. package/dist/scripts/download.sh +2 -2
  137. package/dist/scripts/help.sh +2 -2
  138. package/dist/scripts/ssh.sh +54 -0
  139. package/dist/scripts/unpack.sh +2 -2
  140. package/package.json +2 -2
  141. package/dist/lib/exit.sh +0 -10
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env bash
2
- # 🅳🅾🆃🅵🅸🅻🅴🆂 (v0.2.461) - https://dotfiles.io
2
+ # 🅳🅾🆃🅵🅸🅻🅴🆂 (v0.2.462) - https://dotfiles.io
3
3
  # Made with ♥ in London, UK by @sebastienrousseau
4
- # Copyright (c) 2022. All rights reserved
4
+ # Copyright (c) 2015-2022. All rights reserved
5
5
  # License: MIT
6
6
 
7
7
  # 🅶🅸🆃 🅰🅻🅸🅰🆂🅴🆂 - Git aliases.
@@ -32,7 +32,7 @@
32
32
  # 3.1 Aliases to get and set repository or global options.
33
33
  #
34
34
  # Made with ♥ in London, UK by @sebastienrousseau
35
- # Copyright (c) 2022. All rights reserved
35
+ # Copyright (c) 2015-2022. All rights reserved
36
36
  # Licensed under the MIT license
37
37
  #
38
38
 
@@ -44,487 +44,491 @@
44
44
  ## 1.1 Aliases to work on the current change.
45
45
  ## ----------------------------------------------------------------------------
46
46
 
47
- # g: Short-form git commands.
48
- alias g='git'
47
+ if command -v git &>/dev/null; then
48
+ # g: Short-form git commands.
49
+ alias g='git'
49
50
 
50
- # ga: Add file contents to the index.
51
- alias ga='git add'
51
+ # ga: Add file contents to the index.
52
+ alias ga='git add'
52
53
 
53
- # gaa: Add file contents and update the index not only where the working tree has a
54
- # file matching <pathspec> but also where the index already has an entry.
55
- alias gaa='git add --all'
54
+ # gaa: Add file contents and update the index not only where the working tree has a
55
+ # file matching <pathspec> but also where the index already has an entry.
56
+ alias gaa='git add --all'
56
57
 
57
- # gad: Add current directory file contents to the index.
58
- alias gad='git add .'
58
+ # gad: Add current directory file contents to the index.
59
+ alias gad='git add .'
59
60
 
60
- # gau: Add file contents and update the index just where it already has an entry
61
- # matching <pathspec>.
62
- alias gau='git add --update'
61
+ # gau: Add file contents and update the index just where it already has an entry
62
+ # matching <pathspec>.
63
+ alias gau='git add --update'
63
64
 
64
- # gco: Undo to last commit.
65
- alias gco='git checkout'
65
+ # gco: Undo to last commit.
66
+ alias gco='git checkout'
66
67
 
67
- # gdis: Discard changes in a (list of) file(s) in working tree
68
- alias gdis='checkout --'
68
+ # gdis: Discard changes in a (list of) file(s) in working tree
69
+ alias gdis='checkout --'
69
70
 
70
- # gmv: Move or rename a file, a directory, or a symlink.
71
- alias gmv='git mv'
71
+ # gmv: Move or rename a file, a directory, or a symlink.
72
+ alias gmv='git mv'
72
73
 
73
- # grs: Restore working tree files.
74
- alias grs='git restore'
74
+ # grs: Restore working tree files.
75
+ alias grs='git restore'
75
76
 
76
- # grm: Remove files from the working tree and from the index.
77
- alias grm='git remove'
77
+ # grm: Remove files from the working tree and from the index.
78
+ alias grm='git remove'
78
79
 
79
- # gsc: Initialize and modify the sparse-checkout.
80
- alias gsc='git sparse-checkout'
80
+ # gsc: Initialize and modify the sparse-checkout.
81
+ alias gsc='git sparse-checkout'
81
82
 
82
- ## ----------------------------------------------------------------------------
83
- ## 1.2 Aliases to start a working area.
84
- ## ----------------------------------------------------------------------------
83
+ ## ----------------------------------------------------------------------------
84
+ ## 1.2 Aliases to start a working area.
85
+ ## ----------------------------------------------------------------------------
85
86
 
86
- # gcl: Clone a repository into a new directory.
87
- alias gcl='git clone'
87
+ # gcl: Clone a repository into a new directory.
88
+ alias gcl='git clone'
88
89
 
89
- # gin: Create an empty Git repository or reinitialize an existing one.
90
- alias gin='git init'
90
+ # gin: Create an empty Git repository or reinitialize an existing one.
91
+ alias gin='git init'
91
92
 
92
- ## ----------------------------------------------------------------------------
93
- ## 1.3 Aliases to examine the history and state.
94
- ## ----------------------------------------------------------------------------
93
+ ## ----------------------------------------------------------------------------
94
+ ## 1.3 Aliases to examine the history and state.
95
+ ## ----------------------------------------------------------------------------
95
96
 
96
- # gbs: Use binary search to find the commit that introduced a bug.
97
- alias gbs='git bisect'
97
+ # gbs: Use binary search to find the commit that introduced a bug.
98
+ alias gbs='git bisect'
98
99
 
99
- # gd: Show changes between commits, commit and working tree, etc.
100
- alias gd='git diff'
100
+ # gd: Show changes between commits, commit and working tree, etc.
101
+ alias gd='git diff'
101
102
 
102
- # gg: Print lines matching a pattern.
103
- alias gg='git grep'
103
+ # gg: Print lines matching a pattern.
104
+ alias gg='git grep'
104
105
 
105
- # gl: Show commit logs this month.
106
- alias gl='git log --since="last month" --oneline'
106
+ # gl: Show commit logs this month.
107
+ alias gl='git log --since="last month" --oneline'
107
108
 
108
- # glg: Show commit logs and Draw a text-based graphical representation of the
109
- # commit history on the left hand side of the output.
110
- alias glg='git log --oneline --graph --full-history --all --color --decorate'
109
+ # glg: Show commit logs and Draw a text-based graphical representation of the
110
+ # commit history on the left hand side of the output.
111
+ alias glg='git log --oneline --graph --full-history --all --color --decorate'
111
112
 
112
- # Show various types of objects.
113
- alias gs='git show'
113
+ # Show various types of objects.
114
+ alias gs='git show'
114
115
 
115
- ## ----------------------------------------------------------------------------
116
- ## 1.4 Aliases to list, create, or delete branches.
117
- ## ----------------------------------------------------------------------------
116
+ ## ----------------------------------------------------------------------------
117
+ ## 1.4 Aliases to list, create, or delete branches.
118
+ ## ----------------------------------------------------------------------------
118
119
 
119
- # gb: Create a branch.
120
- alias gb='git branch'
120
+ # gb: Create a branch.
121
+ alias gb='git branch'
121
122
 
122
- # gbd: Delete a branch.
123
- alias gbd='git branch -d'
123
+ # gbd: Delete a branch.
124
+ alias gbd='git branch -d'
124
125
 
125
- # gbl: List branches.
126
- alias gbl='git branch -l'
126
+ # gbl: List branches.
127
+ alias gbl='git branch -l'
127
128
 
128
- # gbr: List the remote-tracking branches.
129
- alias gbr='git branch -r'
129
+ # gbr: List the remote-tracking branches.
130
+ alias gbr='git branch -r'
130
131
 
131
- # gbrd: Delete the remote-tracking branches.
132
- alias gbrd='git branch -d -r'
132
+ # gbrd: Delete the remote-tracking branches.
133
+ alias gbrd='git branch -d -r'
133
134
 
134
- # Print a list of branches and their commits.
135
- alias gbrsb='git show-branch'
135
+ # Print a list of branches and their commits.
136
+ alias gbrsb='git show-branch'
136
137
 
137
- # gct: Record changes to the repository.
138
- alias gct='git commit'
138
+ # gct: Record changes to the repository.
139
+ alias gct='git commit'
139
140
 
140
- # gmg: Join two or more development histories together.
141
- alias gmg='git merge'
141
+ # gmg: Join two or more development histories together.
142
+ alias gmg='git merge'
142
143
 
143
- # grb: Reapply commits on top of another base tip.
144
- alias grb='git rebase'
144
+ # grb: Reapply commits on top of another base tip.
145
+ alias grb='git rebase'
145
146
 
146
- # grs: Reset current HEAD to the specified state.
147
- alias grs='git reset'
147
+ # grs: Reset current HEAD to the specified state.
148
+ alias grs='git reset'
148
149
 
149
- # gswb: Switch branches.
150
- alias gswb='git switch'
150
+ # gswb: Switch branches.
151
+ alias gswb='git switch'
151
152
 
152
- ## ----------------------------------------------------------------------------
153
- ## 1.5 Aliases to collaborate.
154
- ## ----------------------------------------------------------------------------
153
+ ## ----------------------------------------------------------------------------
154
+ ## 1.5 Aliases to collaborate.
155
+ ## ----------------------------------------------------------------------------
155
156
 
156
- # gi: Create an empty Git repository or reinitialize an existing one.
157
- alias gi='git init'
157
+ # gi: Create an empty Git repository or reinitialize an existing one.
158
+ alias gi='git init'
158
159
 
159
- # gf: Download objects and refs from another repository.
160
- alias gf='git fetch'
160
+ # gf: Download objects and refs from another repository.
161
+ alias gf='git fetch'
161
162
 
162
- # gp: Fetch from and integrate with another repository or a local branch.
163
- alias gp='git pull'
163
+ # gp: Fetch from and integrate with another repository or a local branch.
164
+ alias gp='git pull'
164
165
 
165
- # Update remote refs along with associated objects.
166
- alias gph='git push'
166
+ # Update remote refs along with associated objects.
167
+ alias gph='git push'
167
168
 
168
- ## ----------------------------------------------------------------------------
169
- ## 1.6 Aliases to record changes to the repository.
170
- ## ----------------------------------------------------------------------------
169
+ ## ----------------------------------------------------------------------------
170
+ ## 1.6 Aliases to record changes to the repository.
171
+ ## ----------------------------------------------------------------------------
171
172
 
172
- # Commit command to automatically "add" changes from all known files.
173
- alias gc='git commit -a'
173
+ # Commit command to automatically "add" changes from all known files.
174
+ alias gc='git commit -a'
174
175
 
175
- # Amend the tip of the current branch rather than creating a new commit.
176
- alias gca='git commit --amend'
176
+ # Amend the tip of the current branch rather than creating a new commit.
177
+ alias gca='git commit --amend'
177
178
 
178
- # Commit all changes.
179
- alias gcall='git add -A && git commit -av'
179
+ # Commit all changes.
180
+ alias gcall='git add -A && git commit -av'
180
181
 
181
- # Amend the tip of the current branch, and edit the message.
182
- alias gcam='git commit --amend --message '
182
+ # Amend the tip of the current branch, and edit the message.
183
+ alias gcam='git commit --amend --message '
183
184
 
184
- # Amend the tip of the current branch, and do not edit the message.
185
- alias gcane='git commit --amend --no-edit'
185
+ # Amend the tip of the current branch, and do not edit the message.
186
+ alias gcane='git commit --amend --no-edit'
186
187
 
187
- # Commit interactive.
188
- alias gcint='git commit --interactive'
188
+ # Commit interactive.
189
+ alias gcint='git commit --interactive'
189
190
 
190
- # Commit with a message.
191
- alias gcm='git commit --message '
191
+ # Commit with a message.
192
+ alias gcm='git commit --message '
192
193
 
193
- ## ----------------------------------------------------------------------------
194
- ## 1.7 Aliases to show changes between commits, commit and working tree, etc.
195
- ## ----------------------------------------------------------------------------
194
+ ## ----------------------------------------------------------------------------
195
+ ## 1.7 Aliases to show changes between commits, commit and working tree, etc.
196
+ ## ----------------------------------------------------------------------------
196
197
 
197
- # Show changes between the working tree and the index or a tree.
198
- alias gd='git diff'
198
+ # Show changes between the working tree and the index or a tree.
199
+ alias gd='git diff'
199
200
 
200
- # Show only names and status of changed files.
201
- alias gdch='git diff --name-status'
201
+ # Show only names and status of changed files.
202
+ alias gdch='git diff --name-status'
202
203
 
203
- # Show all changes of tracked files which are present in working directory and staging area.
204
- alias gdh='git diff HEAD'
204
+ # Show all changes of tracked files which are present in working directory and staging area.
205
+ alias gdh='git diff HEAD'
205
206
 
206
- # Show changes to files in the "staged" area.
207
- alias gdstaged='git diff --staged'
207
+ # Show changes to files in the "staged" area.
208
+ alias gdstaged='git diff --staged'
208
209
 
209
- # Shows the changes between the index and the HEAD (which is the last commit on this branch).
210
- alias gdcached='git diff --cached'
210
+ # Shows the changes between the index and the HEAD (which is the last commit on this branch).
211
+ alias gdcached='git diff --cached'
211
212
 
212
- # Generate a diffstat.
213
- alias gdstat='git diff --stat --ignore-space-change -r'
213
+ # Generate a diffstat.
214
+ alias gdstat='git diff --stat --ignore-space-change -r'
214
215
 
215
- ## ----------------------------------------------------------------------------
216
- ## 1.8 Aliases to show commit logs.
217
- ## ----------------------------------------------------------------------------
216
+ ## ----------------------------------------------------------------------------
217
+ ## 1.8 Aliases to show commit logs.
218
+ ## ----------------------------------------------------------------------------
218
219
 
219
- # Show log of changes, most recent first.
220
- alias glc='git log --oneline --reverse'
220
+ # Show log of changes, most recent first.
221
+ alias glc='git log --oneline --reverse'
221
222
 
222
- # Show the log of the recent day.
223
- alias gld='git log --since=1-day-ago'
223
+ # Show the log of the recent day.
224
+ alias gld='git log --since=1-day-ago'
224
225
 
225
- # Show the date of the latest commit, in strict ISO 8601 format.
226
- alias gldc='git log -1 --date-order --format=%cI'
226
+ # Show the date of the latest commit, in strict ISO 8601 format.
227
+ alias gldc='git log -1 --date-order --format=%cI'
227
228
 
228
- # Show log with dates in our local timezone.
229
- alias gldl='git log --date=local'
229
+ # Show log with dates in our local timezone.
230
+ alias gldl='git log --date=local'
230
231
 
231
- # Show log of new commits after you fetched, with stats, excluding merges.
232
- alias glf='git log ORIG_HEAD.. --stat --no-merges'
232
+ # Show log of new commits after you fetched, with stats, excluding merges.
233
+ alias glf='git log ORIG_HEAD.. --stat --no-merges'
233
234
 
234
- # Show the date of the earliest commit, in strict ISO 8601 format.
235
- alias glfd='!"git log --date-order --format=%cI | tail -1"'
235
+ # Show the date of the earliest commit, in strict ISO 8601 format.
236
+ alias glfd='!"git log --date-order --format=%cI | tail -1"'
236
237
 
237
- # Visualization of branch topology.
238
- alias glfh='git log --graph --full-history --all --color'
238
+ # Visualization of branch topology.
239
+ alias glfh='git log --graph --full-history --all --color'
239
240
 
240
- # Show log as a graph.
241
- alias glg='git log --graph --all --oneline --decorate'
241
+ # Show log as a graph.
242
+ alias glg='git log --graph --all --oneline --decorate'
242
243
 
243
- # Show the log of the recent hour.
244
- alias glh='git log --since=1-hour-ago'
244
+ # Show the log of the recent hour.
245
+ alias glh='git log --since=1-hour-ago'
245
246
 
246
- # Show log in our preferred format for our key performance indicators. A.k.a. `ll`.
247
- alias gll='git log --graph --topo-order --date=short --abbrev-commit --decorate --all --boundary --pretty=format:"%Cgreen%ad %Cred%h%Creset -%C(yellow)%d%Creset %s %Cblue[%cn]%Creset %Cblue%G?%Creset"'
247
+ # Show log in our preferred format for our key performance indicators. A.k.a. `ll`.
248
+ alias gll='git log --graph --topo-order --date=short --abbrev-commit --decorate --all --boundary --pretty=format:"%Cgreen%ad %Cred%h%Creset -%C(yellow)%d%Creset %s %Cblue[%cn]%Creset %Cblue%G?%Creset"'
248
249
 
249
- # Show log in our preferred format for our key performance indicators, with long items. A.k.a. `lll`.
250
- alias glll='git log --graph --topo-order --date=iso8601-strict --no-abbrev-commit --decorate --all --boundary --pretty=format:"%Cgreen%ad %Cred%h%Creset -%C(yellow)%d%Creset %s %Cblue[%cn <%ce>]%Creset %Cblue%G?%Creset"'
250
+ # Show log in our preferred format for our key performance indicators, with long items. A.k.a. `lll`.
251
+ alias glll='git log --graph --topo-order --date=iso8601-strict --no-abbrev-commit --decorate --all --boundary --pretty=format:"%Cgreen%ad %Cred%h%Creset -%C(yellow)%d%Creset %s %Cblue[%cn <%ce>]%Creset %Cblue%G?%Creset"'
251
252
 
252
- # Show the log of the recent month.
253
- alias glm='git log --since=1-month-ago'
253
+ # Show the log of the recent month.
254
+ alias glm='git log --since=1-month-ago'
254
255
 
255
- # Show the log for my own commits by my own user email.
256
- alias glmy='!git log --author $(git config user.email)'
256
+ # Show the log for my own commits by my own user email.
257
+ alias glmy='!git log --author $(git config user.email)'
257
258
 
258
- # Show the log of the recent week.
259
- alias glw='git log --since=1-week-ago'
259
+ # Show the log of the recent week.
260
+ alias glw='git log --since=1-week-ago'
260
261
 
261
- # Show the log of the recent year.
262
- alias gly='git log --since=1-year-ago'
262
+ # Show the log of the recent year.
263
+ alias gly='git log --since=1-year-ago'
263
264
 
264
- ## ----------------------------------------------------------------------------
265
- ## 1.9 Aliases to switch branches or restore working tree files.
266
- ## ----------------------------------------------------------------------------
265
+ ## ----------------------------------------------------------------------------
266
+ ## 1.9 Aliases to switch branches or restore working tree files.
267
+ ## ----------------------------------------------------------------------------
267
268
 
268
- # Clean and discard changes and untracked files in working tree.
269
- alias gclout='git clean -df && git checkout -- .'
269
+ # Clean and discard changes and untracked files in working tree.
270
+ alias gclout='git clean -df && git checkout -- .'
270
271
 
271
- # Switch branches or restore working tree files.
272
- alias gco='git checkout'
272
+ # Switch branches or restore working tree files.
273
+ alias gco='git checkout'
273
274
 
274
- # Create a new branch named <new_branch> and start it at <start_point>.
275
- alias gcb='git checkout -b'
275
+ # Create a new branch named <new_branch> and start it at <start_point>.
276
+ alias gcb='git checkout -b'
276
277
 
277
- # Delete all local branches that have been merged into the local main branch.
278
- alias gcode='git checkout main && git branch --merged | xargs git branch --delete'
278
+ # Delete all local branches that have been merged into the local main branch.
279
+ alias gcode='git checkout main && git branch --merged | xargs git branch --delete'
279
280
 
280
- # Ensure local is like the main branch.
281
- alias gcom='git checkout main && git fetch origin --prune && git reset --hard origin/main'
281
+ # Ensure local is like the main branch.
282
+ alias gcom='git checkout main && git fetch origin --prune && git reset --hard origin/main'
282
283
 
283
- ## ----------------------------------------------------------------------------
284
- ## 2.0 Aliases to update remote refs along with associated objects.
285
- ## ----------------------------------------------------------------------------
284
+ ## ----------------------------------------------------------------------------
285
+ ## 2.0 Aliases to update remote refs along with associated objects.
286
+ ## ----------------------------------------------------------------------------
286
287
 
287
- # Publish the current branch by pushing it to the remote "origin", and setting
288
- # the current branch to track the upstream branch.
289
- alias gpb='git push --set-upstream origin $(git current-branch)'
288
+ # Publish the current branch by pushing it to the remote "origin", and setting
289
+ # the current branch to track the upstream branch.
290
+ alias gpb='git push --set-upstream origin $(git current-branch)'
290
291
 
291
- # Push local changes to the online repository.
292
- alias gpo='git push origin'
292
+ # Push local changes to the online repository.
293
+ alias gpo='git push origin'
293
294
 
294
- # Push local tags.
295
- alias gpt='git push --tags'
295
+ # Push local tags.
296
+ alias gpt='git push --tags'
296
297
 
297
- # Push each of your local git branches to the remote repository
298
- alias gpoll='git push origin --all'
298
+ # Push each of your local git branches to the remote repository
299
+ alias gpoll='git push origin --all'
299
300
 
300
- # Fetch from and integrate with another repository or a local branch.
301
- alias gpull='git pull'
301
+ # Fetch from and integrate with another repository or a local branch.
302
+ alias gpull='git pull'
302
303
 
303
- # Pull changes from the locally stored branch origin/master and merge that to
304
- # the local checked-out branch.
305
- alias gpullm='git pull origin master'
304
+ # Pull changes from the locally stored branch origin/master and merge that to
305
+ # the local checked-out branch.
306
+ alias gpullm='git pull origin master'
306
307
 
307
- # Do a pull for just one branch.
308
- alias gpullo='git pull origin $(git current-branch)'
308
+ # Do a pull for just one branch.
309
+ alias gpullo='git pull origin $(git current-branch)'
309
310
 
310
- # Update remote refs along with associated objects.
311
- alias gpush='git push'
311
+ # Update remote refs along with associated objects.
312
+ alias gpush='git push'
312
313
 
313
- # Do a push for just one branch.
314
- alias gpusho='git push origin $(git current-branch)'
314
+ # Do a push for just one branch.
315
+ alias gpusho='git push origin $(git current-branch)'
315
316
 
316
- # For each remote branch, push it.
317
- alias gpushr='git remote | xargs -I% -n1 git push %'
317
+ # For each remote branch, push it.
318
+ alias gpushr='git remote | xargs -I% -n1 git push %'
318
319
 
319
- # Unpublish the current branch by deleting the remote version of the current branch.
320
- alias gunpub='git push origin :$(git current-branch)'
320
+ # Unpublish the current branch by deleting the remote version of the current branch.
321
+ alias gunpub='git push origin :$(git current-branch)'
321
322
 
322
- # Push current branch
323
- # alias gpcb='git push origin "$(git branch|grep '\*'|tr -d '* \n')"'
323
+ # Push current branch
324
+ # alias gpcb='git push origin "$(git branch|grep '\*'|tr -d '* \n')"'
324
325
 
325
- ## ----------------------------------------------------------------------------
326
- ## 2.1 Aliases to manage set of tracked repositories.
327
- ## ----------------------------------------------------------------------------
326
+ ## ----------------------------------------------------------------------------
327
+ ## 2.1 Aliases to manage set of tracked repositories.
328
+ ## ----------------------------------------------------------------------------
328
329
 
329
- # Manage set of tracked repositories.
330
- alias gr='git remote'
330
+ # Manage set of tracked repositories.
331
+ alias gr='git remote'
331
332
 
332
- # Add a remote named <name> for the repository at <url>.
333
- alias gra='git remote add'
333
+ # Add a remote named <name> for the repository at <url>.
334
+ alias gra='git remote add'
334
335
 
335
- # Push all branches to all remotes.
336
- alias grall='git remote | xargs -L1 git push --all'
336
+ # Push all branches to all remotes.
337
+ alias grall='git remote | xargs -L1 git push --all'
337
338
 
338
- # Git remote all remotes except origin.
339
- # alias grallo="git remote -v | grep "(fetch)" | sed -e 's#[[:blank:]].*##g' | grep -v "origin" | xargs -n 1 git remote rm"
339
+ # Git remote all remotes except origin.
340
+ # alias grallo="git remote -v | grep "(fetch)" | sed -e 's#[[:blank:]].*##g' | grep -v "origin" | xargs -n 1 git remote rm"
340
341
 
341
- # Add a new remote 'origin' if it doesn't exist.
342
- alias grao='git remote add origin'
342
+ # Add a new remote 'origin' if it doesn't exist.
343
+ alias grao='git remote add origin'
343
344
 
344
- # Rollback to stage.
345
- alias grbk='git reset --soft HEAD^'
345
+ # Rollback to stage.
346
+ alias grbk='git reset --soft HEAD^'
346
347
 
347
- # Deletes all stale remote-tracking branches under <name>.
348
- alias grcl='git remote prune'
348
+ # Deletes all stale remote-tracking branches under <name>.
349
+ alias grcl='git remote prune'
349
350
 
350
- # Show GIT Remote Origin for each immediate subfolder.
351
- # alias grf="find . -maxdepth 1 -type d \( ! -name . \) -exec bash -c "cd '{}' && echo '{}' && git config --get remote.origin.url" \;"
351
+ # Show GIT Remote Origin for each immediate subfolder.
352
+ # alias grf="find . -maxdepth 1 -type d \( ! -name . \) -exec bash -c "cd '{}' && echo '{}' && git config --get remote.origin.url" \;"
352
353
 
353
- # Fetch all git remotes for a repo.
354
- # alias grfall="git branch -r | awk -F'/' '{print "git fetch "$1,$2}' | xargs -I {} sh -c {}"
354
+ # Fetch all git remotes for a repo.
355
+ # alias grfall="git branch -r | awk -F'/' '{print "git fetch "$1,$2}' | xargs -I {} sh -c {}"
355
356
 
356
- # For each remote branch, push it.
357
- alias grp="git remote | xargs -I% -n1 git push %"
357
+ # For each remote branch, push it.
358
+ alias grp="git remote | xargs -I% -n1 git push %"
358
359
 
359
- # Push all remotes.
360
- # Print the url for the current repo.
361
- alias grprint="git remote -v | sed -n '/github.com.*push/{s/^[^[:space:]]\+[[:space:]]\+//;s|git@github.com:|https://github.com/|;s/\.git.*//;p}"
360
+ # Push all remotes.
361
+ # Print the url for the current repo.
362
+ alias grprint="git remote -v | sed -n '/github.com.*push/{s/^[^[:space:]]\+[[:space:]]\+//;s|git@github.com:|https://github.com/|;s/\.git.*//;p}"
362
363
 
363
- # Gives some information about the remote <name>.
364
- alias grs='git show'
364
+ # Gives some information about the remote <name>.
365
+ alias grs='git show'
365
366
 
366
- # Display where the origin resides.
367
- alias grso='git remote show origin'
367
+ # Display where the origin resides.
368
+ alias grso='git remote show origin'
368
369
 
369
- # Fetch updates for a named set of remotes in the repository as defined by remotes.
370
- alias gru='git remote update'
370
+ # Fetch updates for a named set of remotes in the repository as defined by remotes.
371
+ alias gru='git remote update'
371
372
 
372
- # Shows URLs of remote repositories when listing your current remote connections.
373
- alias grv='git remote -v'
373
+ # Shows URLs of remote repositories when listing your current remote connections.
374
+ alias grv='git remote -v'
374
375
 
375
- ## ----------------------------------------------------------------------------
376
- ## 2.2 Aliases to revert some existing commits.
377
- ## ----------------------------------------------------------------------------
376
+ ## ----------------------------------------------------------------------------
377
+ ## 2.2 Aliases to revert some existing commits.
378
+ ## ----------------------------------------------------------------------------
378
379
 
379
- alias grev='git revert' # Undo the changes from some existing commits
380
- alias grevnc='git revert --no-commit' # Revert without autocommit; useful when you're reverting more than one commits' effect to your index in a row.
380
+ alias grev='git revert' # Undo the changes from some existing commits
381
+ alias grevnc='git revert --no-commit' # Revert without autocommit; useful when you're reverting more than one commits' effect to your index in a row.
381
382
 
382
- ## ----------------------------------------------------------------------------
383
- ## 2.3 Aliases to initialize, update or inspect submodules.
384
- ## ----------------------------------------------------------------------------
383
+ ## ----------------------------------------------------------------------------
384
+ ## 2.3 Aliases to initialize, update or inspect submodules.
385
+ ## ----------------------------------------------------------------------------
385
386
 
386
- # Enables foreign repositories to be embedded within a dedicated subdirectory of the source tree.
387
- alias gsm='git submodule'
387
+ # Enables foreign repositories to be embedded within a dedicated subdirectory of the source tree.
388
+ alias gsm='git submodule'
388
389
 
389
- # Initialize the submodules recorded in the index
390
- alias gsmi='git submodule init'
390
+ # Initialize the submodules recorded in the index
391
+ alias gsmi='git submodule init'
391
392
 
392
- # Add the given repository as a submodule at the given path to the changeset to be committed next to the current project: the current project is termed the "superproject".
393
- alias gsma='git submodule add'
393
+ # Add the given repository as a submodule at the given path to the changeset to be committed next to the current project: the current project is termed the "superproject".
394
+ alias gsma='git submodule add'
394
395
 
395
- # Synchronizes submodules' remote URL configuration setting to the value specified in .gitmodules.
396
- alias gsms='git submodule sync'
396
+ # Synchronizes submodules' remote URL configuration setting to the value specified in .gitmodules.
397
+ alias gsms='git submodule sync'
397
398
 
398
- # Update the registered submodules to match what the superproject expects by cloning missing submodules, fetching missing commits in submodules and updating the working tree of the submodules.
399
- alias gsmu='git submodule update'
399
+ # Update the registered submodules to match what the superproject expects by cloning missing submodules, fetching missing commits in submodules and updating the working tree of the submodules.
400
+ alias gsmu='git submodule update'
400
401
 
401
- # Submodule update with initialize
402
- alias gsmui='git submodule update --init'
402
+ # Submodule update with initialize
403
+ alias gsmui='git submodule update --init'
403
404
 
404
- # Submodule update with initialize and recursive; this is useful to bring a submodule fully up to date.
405
- alias gsmuir='git submodule update --init --recursive'
405
+ # Submodule update with initialize and recursive; this is useful to bring a submodule fully up to date.
406
+ alias gsmuir='git submodule update --init --recursive'
406
407
 
407
- ## ----------------------------------------------------------------------------
408
- ## 2.4 Aliases to show the working tree status.
409
- ## ----------------------------------------------------------------------------
408
+ ## ----------------------------------------------------------------------------
409
+ ## 2.4 Aliases to show the working tree status.
410
+ ## ----------------------------------------------------------------------------
410
411
 
411
- # Show the working tree status.
412
- alias gst='git status'
412
+ # Show the working tree status.
413
+ alias gst='git status'
413
414
 
414
- # Stash the changes.
415
- alias gsta='git stash save '
415
+ # Stash the changes.
416
+ alias gsta='git stash save '
416
417
 
417
- # Remove untracked files in a git repository.
418
- # alias gstrmu='git status -su | cut -d' ' -f2- | tr "\n" "\0" | xargs -0 rm'
418
+ # Remove untracked files in a git repository.
419
+ # alias gstrmu='git status -su | cut -d' ' -f2- | tr "\n" "\0" | xargs -0 rm'
419
420
 
420
- # Status with short format instead of full details.
421
- alias gsts='git status --short'
421
+ # Status with short format instead of full details.
422
+ alias gsts='git status --short'
422
423
 
423
- # Status with short format and showing branch and tracking info.
424
- alias gstsb='git status --short --branch'
424
+ # Status with short format and showing branch and tracking info.
425
+ alias gstsb='git status --short --branch'
425
426
 
426
- ## ----------------------------------------------------------------------------
427
- ## 2.5 Aliases to create, list, delete or verify a tag object signed with GPG.
428
- ## ----------------------------------------------------------------------------
427
+ ## ----------------------------------------------------------------------------
428
+ ## 2.5 Aliases to create, list, delete or verify a tag object signed with GPG.
429
+ ## ----------------------------------------------------------------------------
429
430
 
430
- # See all tags.
431
- alias gt='git tag'
431
+ # See all tags.
432
+ alias gt='git tag'
432
433
 
433
- # Create, list, delete or verify a tag object signed with GPG.
434
- alias gtg='git tag'
434
+ # Create, list, delete or verify a tag object signed with GPG.
435
+ alias gtg='git tag'
435
436
 
436
- # Last tag in the current branch.
437
- alias gtl='git describe --tags --abbrev=0'
437
+ # Last tag in the current branch.
438
+ alias gtl='git describe --tags --abbrev=0'
438
439
 
439
- ## ----------------------------------------------------------------------------
440
- ## 2.6 Aliases to show various types of objects.
441
- ## ----------------------------------------------------------------------------
440
+ ## ----------------------------------------------------------------------------
441
+ ## 2.6 Aliases to show various types of objects.
442
+ ## ----------------------------------------------------------------------------
442
443
 
443
- # Show various types of objects
444
- alias gshow='git show'
444
+ # Show various types of objects
445
+ alias gshow='git show'
445
446
 
446
- # Find the nearest parent branch of the current git branch.
447
- # alias gshf='git show-branch -a | grep '\*' | grep -v 'git rev-parse --abbrev-ref HEAD' | head -n1 | sed 's/.*\[\(.*\)\].*/\1/' | sed 's/[\^~].*//''
447
+ # Find the nearest parent branch of the current git branch.
448
+ # alias gshf='git show-branch -a | grep '\*' | grep -v 'git rev-parse --abbrev-ref HEAD' | head -n1 | sed 's/.*\[\(.*\)\].*/\1/' | sed 's/[\^~].*//''
448
449
 
449
- # Show list of files changed by commit.
450
- alias gshls='git show --relative --pretty=format:'''
450
+ # Show list of files changed by commit.
451
+ alias gshls='git show --relative --pretty=format:'''
451
452
 
452
- # Given any git object, try to show it briefly.
453
- alias gshnp='git show --no-patch --pretty="tformat:%h (%s, %ad)" --date=short'
453
+ # Given any git object, try to show it briefly.
454
+ alias gshnp='git show --no-patch --pretty="tformat:%h (%s, %ad)" --date=short'
454
455
 
455
- # Show who contributed, in descending order by number of commits.
456
- alias gshwho='git shortlog --summary --numbered --no-merges'
456
+ # Show who contributed, in descending order by number of commits.
457
+ alias gshwho='git shortlog --summary --numbered --no-merges'
457
458
 
458
- ## ----------------------------------------------------------------------------
459
- ## 2.7 Aliases to reset current HEAD to the specified state.
460
- ## ----------------------------------------------------------------------------
459
+ ## ----------------------------------------------------------------------------
460
+ ## 2.7 Aliases to reset current HEAD to the specified state.
461
+ ## ----------------------------------------------------------------------------
461
462
 
462
- # Reset commit clean.
463
- alias grescl='git reset --hard HEAD~1 && git clean -fd'
463
+ # Reset commit clean.
464
+ alias grescl='git reset --hard HEAD~1 && git clean -fd'
464
465
 
465
- # Reset commit hard.
466
- alias gresh='git reset --hard HEAD~1'
466
+ # Reset commit hard.
467
+ alias gresh='git reset --hard HEAD~1'
467
468
 
468
- # Reset pristine.
469
- alias gresp='git reset --hard && git clean -ffdx'
469
+ # Reset pristine.
470
+ alias gresp='git reset --hard && git clean -ffdx'
470
471
 
471
- # Reset commit.
472
- alias gress='git reset --soft HEAD~1'
472
+ # Reset commit.
473
+ alias gress='git reset --soft HEAD~1'
473
474
 
474
- # Reset to upstream.
475
- alias gresu='git reset --hard $(git upstream-branch)'
475
+ # Reset to upstream.
476
+ alias gresu='git reset --hard $(git upstream-branch)'
476
477
 
477
- ## ----------------------------------------------------------------------------
478
- ## 2.8 Aliases to pick out and massage parameters.
479
- ## ----------------------------------------------------------------------------
478
+ ## ----------------------------------------------------------------------------
479
+ ## 2.8 Aliases to pick out and massage parameters.
480
+ ## ----------------------------------------------------------------------------
480
481
 
481
- # Get the top level directory name.
482
- alias gtp='git rev-parse --show-toplevel'
482
+ # Get the top level directory name.
483
+ alias gtp='git rev-parse --show-toplevel'
483
484
 
484
- # Get the current branch name.
485
- alias grpa='git rev-parse --abbrev-ref HEAD'
485
+ # Get the current branch name.
486
+ alias grpa='git rev-parse --abbrev-ref HEAD'
486
487
 
487
- # Get the upstream branch name.
488
- # alias gub='git for-each-ref --format='%(upstream:short)' $(git symbolic-ref -q HEAD)'
488
+ # Get the upstream branch name.
489
+ # alias gub='git for-each-ref --format='%(upstream:short)' $(git symbolic-ref -q HEAD)'
489
490
 
490
- ## ----------------------------------------------------------------------------
491
- ## 2.9 Aliases to remove files from the working tree and from the index.
492
- ## ----------------------------------------------------------------------------
491
+ ## ----------------------------------------------------------------------------
492
+ ## 2.9 Aliases to remove files from the working tree and from the index.
493
+ ## ----------------------------------------------------------------------------
493
494
 
494
- # Remove files from the working tree and from the index.
495
- alias grm='git rm'
495
+ # Remove files from the working tree and from the index.
496
+ alias grm='git rm'
496
497
 
497
- # Unstage and remove paths only from the index.
498
- alias grmc='git rm --cached'
498
+ # Unstage and remove paths only from the index.
499
+ alias grmc='git rm --cached'
499
500
 
500
- # Remove files which have been deleted.
501
- alias grmd='git ls-files -z --deleted | xargs -0 git rm'
501
+ # Remove files which have been deleted.
502
+ alias grmd='git ls-files -z --deleted | xargs -0 git rm'
502
503
 
503
- # Remove files which have been deleted.
504
- alias grmd2='git rm $(git ls-files --deleted)'
504
+ # Remove files which have been deleted.
505
+ alias grmd2='git rm $(git ls-files --deleted)'
505
506
 
506
- # Remove .DS_Store from the repository.
507
- alias grmds='find . -name .DS_Store -exec git rm --ignore-unmatch --cached {} +'
507
+ # Remove .DS_Store from the repository.
508
+ alias grmds='find . -name .DS_Store -exec git rm --ignore-unmatch --cached {} +'
508
509
 
509
- # Remove for all deleted files, including those with space/quote/unprintable characters in their filename/path.
510
- alias grmx='git ls-files -z -d | xargs -0 git rm --'
510
+ # Remove for all deleted files, including those with space/quote/unprintable characters in their filename/path.
511
+ alias grmx='git ls-files -z -d | xargs -0 git rm --'
511
512
 
512
- ## ----------------------------------------------------------------------------
513
- ## 3.0 Aliases to show what revision and author last modified each line of a file.
514
- ## ----------------------------------------------------------------------------
513
+ ## ----------------------------------------------------------------------------
514
+ ## 3.0 Aliases to show what revision and author last modified each line of a file.
515
+ ## ----------------------------------------------------------------------------
515
516
 
516
- # Prints per-line contribution per author for a GIT repository.
517
- # alias gblau='git ls-files | xargs -n1 git blame --line-porcelain | sed -n 's/^author //p' | sort -f | uniq -ic | sort -nr'
517
+ # Prints per-line contribution per author for a GIT repository.
518
+ # alias gblau='git ls-files | xargs -n1 git blame --line-porcelain | sed -n 's/^author //p' | sort -f | uniq -ic | sort -nr'
518
519
 
519
- ## ----------------------------------------------------------------------------
520
- ## 3.1 Aliases to get and set repository or global options.
521
- ## ----------------------------------------------------------------------------
520
+ ## ----------------------------------------------------------------------------
521
+ ## 3.1 Aliases to get and set repository or global options.
522
+ ## ----------------------------------------------------------------------------
523
+
524
+ # Better git diff, word delimited and colorized.
525
+ alias gconfdiff='git config alias.dcolor "diff --color-words"'
522
526
 
523
- # Better git diff, word delimited and colorized.
524
- alias gconfdiff='git config alias.dcolor "diff --color-words"'
527
+ # List all the settings.
528
+ alias gconfl='git config --list'
525
529
 
526
- # List all the settings.
527
- alias gconfl='git config --list'
530
+ # Output remote origin from within a local repository.
531
+ alias gconfr='git config --local --get remote.origin.url'
528
532
 
529
- # Output remote origin from within a local repository.
530
- alias gconfr='git config --local --get remote.origin.url'
533
+ alias undopush="git push -f origin HEAD^:master" # undopush: Undo the last push.
534
+ fi