@sebastienrousseau/dotfiles 0.2.459 → 0.2.461
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.
- package/README.md +5 -5
- package/dist/Makefile +15 -14
- package/dist/bin/backup.d.ts.map +1 -1
- package/dist/bin/backup.js.map +1 -1
- package/dist/bin/constants.d.ts +2 -2
- package/dist/bin/constants.d.ts.map +1 -1
- package/dist/bin/constants.js +1 -1
- package/dist/bin/constants.js.map +1 -1
- package/dist/bin/copy.d.ts.map +1 -1
- package/dist/bin/copy.js.map +1 -1
- package/dist/bin/dotfiles.d.ts.map +1 -1
- package/dist/bin/dotfiles.js.map +1 -1
- package/dist/bin/download.d.ts.map +1 -1
- package/dist/bin/download.js.map +1 -1
- package/dist/bin/index.js.map +1 -1
- package/dist/bin/transfer.d.ts.map +1 -1
- package/dist/bin/transfer.js.map +1 -1
- package/dist/bin/unpack.d.ts.map +1 -1
- package/dist/bin/unpack.js.map +1 -1
- package/dist/filesizes.txt +104 -104
- package/dist/lib/aliases/default/default.aliases.sh +3 -2
- package/dist/lib/aliases/gcloud/gcloud.aliases.sh +119 -118
- package/dist/lib/aliases/git/git.aliases.sh +6 -45
- package/dist/lib/aliases/heroku/heroku.aliases.sh +677 -675
- package/dist/lib/aliases/jekyll/jekyll.aliases.sh +30 -28
- package/dist/lib/aliases/pnpm/pnpm.aliases.sh +38 -37
- package/dist/lib/aliases/subversion/subversion.aliases.sh +82 -81
- package/dist/lib/aliases/tmux/tmux.aliases.sh +3 -2
- package/dist/lib/aliases.sh +3 -2
- package/dist/lib/configurations/bash/bashrc +4 -3
- package/dist/lib/configurations/curl/curlrc +3 -2
- package/dist/lib/configurations/default/color.sh +3 -2
- package/dist/lib/configurations/default/constants.sh +8 -5
- package/dist/lib/configurations/default/editor.sh +3 -2
- package/dist/lib/configurations/default/prompt.sh +3 -2
- package/dist/lib/configurations/input/inputrc +3 -2
- package/dist/lib/configurations/nano/nanorc +3 -2
- package/dist/lib/configurations/profile/profile +3 -2
- package/dist/lib/configurations/tmux/default +3 -2
- package/dist/lib/configurations/tmux/display +3 -2
- package/dist/lib/configurations/tmux/linux +3 -2
- package/dist/lib/configurations/tmux/navigation +3 -2
- package/dist/lib/configurations/tmux/panes +3 -2
- package/dist/lib/configurations/tmux/theme +4 -3
- package/dist/lib/configurations/tmux/tmux +3 -2
- package/dist/lib/configurations/tmux/vi +3 -2
- package/dist/lib/configurations/vim/vimrc +1 -1
- package/dist/lib/configurations/wget/wgetrc +3 -2
- package/dist/lib/configurations/zsh/zshrc +4 -3
- package/dist/lib/configurations.sh +3 -2
- package/dist/lib/exit.sh +3 -2
- package/dist/lib/functions/cdls.sh +3 -2
- package/dist/lib/functions/changediskpwd.tmp +5 -5
- package/dist/lib/functions/code.tmp +5 -5
- package/dist/lib/functions/countdown.tmp +3 -2
- package/dist/lib/functions/curlheader.sh +4 -3
- package/dist/lib/functions/curltime.sh +7 -6
- package/dist/lib/functions/encode64.sh +3 -2
- package/dist/lib/functions/environment.sh +4 -4
- package/dist/lib/functions/extract.sh +3 -2
- package/dist/lib/functions/genpwd.sh +8 -7
- package/dist/lib/functions/goto.sh +3 -2
- package/dist/lib/functions/hidehiddenfiles.sh +3 -2
- package/dist/lib/functions/history-all.tmp +3 -2
- package/dist/lib/functions/hostinfo.sh +3 -2
- package/dist/lib/functions/hstats.sh +4 -3
- package/dist/lib/functions/httpdebug.sh +3 -2
- package/dist/lib/functions/keygen.sh +3 -2
- package/dist/lib/functions/last.sh +3 -2
- package/dist/lib/functions/logout.sh +3 -2
- package/dist/lib/functions/lowercase.sh +18 -18
- package/dist/lib/functions/macos.sh +16 -16
- package/dist/lib/functions/matrix.sh +3 -2
- package/dist/lib/functions/mcd.sh +3 -2
- package/dist/lib/functions/mount_read_only.sh +3 -2
- package/dist/lib/functions/myproc.sh +3 -2
- package/dist/lib/functions/prependpath.sh +4 -3
- package/dist/lib/functions/print.tmp +3 -2
- package/dist/lib/functions/ql.sh +3 -2
- package/dist/lib/functions/rd.sh +5 -4
- package/dist/lib/functions/remove_disk.sh +4 -3
- package/dist/lib/functions/ren.sh +3 -2
- package/dist/lib/functions/rm.tmp +3 -2
- package/dist/lib/functions/rps.tmp +3 -2
- package/dist/lib/functions/showhiddenfiles.sh +3 -2
- package/dist/lib/functions/size.sh +3 -2
- package/dist/lib/functions/stopwatch.sh +3 -2
- package/dist/lib/functions/trash.tmp +3 -2
- package/dist/lib/functions/tree.tmp +3 -2
- package/dist/lib/functions/uppercase.sh +18 -18
- package/dist/lib/functions/uuidgen.tmp +2 -1
- package/dist/lib/functions/view-source.sh +4 -4
- package/dist/lib/functions/vscode.sh +3 -3
- package/dist/lib/functions/whoisport.sh +3 -2
- package/dist/lib/functions/zipf.sh +4 -3
- package/dist/lib/functions.sh +3 -2
- package/dist/lib/history.sh +24 -23
- package/dist/lib/paths/ant/ant.paths.sh +3 -2
- package/dist/lib/paths/default/default.paths.sh +12 -11
- package/dist/lib/paths/homebrew/homebrew.paths.sh +3 -2
- package/dist/lib/paths/java/java.paths.sh +3 -2
- package/dist/lib/paths/maven/maven.paths.sh +3 -2
- package/dist/lib/paths/node/node.paths.sh +3 -2
- package/dist/lib/paths/nvm/nvm.paths.sh +3 -2
- package/dist/lib/paths/pnpm/pnpm.paths.sh +3 -2
- package/dist/lib/paths/python/python.paths.sh +5 -4
- package/dist/lib/paths/ruby/ruby.paths.sh +3 -2
- package/dist/lib/paths/tmux/tmux.paths.sh +3 -2
- package/dist/lib/paths.sh +3 -2
- package/dist/scripts/backup.sh +15 -5
- package/dist/scripts/banner.sh +3 -2
- package/dist/scripts/{assemble.sh → build.sh} +12 -4
- package/dist/scripts/clean.sh +3 -2
- package/dist/scripts/compile.sh +3 -2
- package/dist/scripts/copy.sh +4 -3
- package/dist/scripts/dotfiles.sh +3 -2
- package/dist/scripts/download.sh +16 -5
- package/dist/scripts/help.sh +5 -4
- package/dist/scripts/unpack.sh +3 -2
- package/package.json +2 -1
|
@@ -1,121 +1,122 @@
|
|
|
1
1
|
#!/usr/bin/env bash
|
|
2
|
-
# 🅳🅾🆃🅵🅸🅻🅴🆂 (v0.2.
|
|
3
|
-
#
|
|
2
|
+
# 🅳🅾🆃🅵🅸🅻🅴🆂 (v0.2.461) - https://dotfiles.io
|
|
3
|
+
# Made with ♥ in London, UK by @sebastienrousseau
|
|
4
|
+
# Copyright (c) 2022. All rights reserved
|
|
4
5
|
# License: MIT
|
|
5
6
|
|
|
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
|
-
|
|
7
|
+
# 🅶🅲🅻🅾🆄🅳 🅰🅻🅸🅰🆂🅴🆂 - Google Cloud aliases.
|
|
8
|
+
# Sections:
|
|
9
|
+
#
|
|
10
|
+
# 1.0 Google Cloud Aliases.
|
|
11
|
+
# 1.1 Aliases to get going with the gcloud command-line tool.
|
|
12
|
+
# 1.2 Aliases to make the Cloud SDK your own; personalize your configuration with properties.
|
|
13
|
+
# 1.3 Aliases to grant and revoke authorization to Cloud SDK.
|
|
14
|
+
# 1.4 Aliases to configuring Cloud Identity & Access Management (IAM) preferences and service accounts.
|
|
15
|
+
# 1.5 Aliases to manage project access policies.
|
|
16
|
+
# 1.6 Aliases to manage containerized applications on Kubernetes.
|
|
17
|
+
# 1.7 Aliases to create, run, and manage VMs on Google infrastructure.
|
|
18
|
+
# 1.8 Aliases to build highly scalable applications on a fully managed serverless platform.
|
|
19
|
+
# 1.9 Aliases to commands that might come in handy.
|
|
20
|
+
#
|
|
21
|
+
# Made with ♥ in London, UK by @sebastienrousseau
|
|
22
|
+
# Copyright (c) 2022. All rights reserved
|
|
23
|
+
# Licensed under the MIT license
|
|
24
|
+
#
|
|
25
|
+
|
|
26
|
+
## ----------------------------------------------------------------------------
|
|
27
|
+
## 1.0 Google Cloud Aliases.
|
|
28
|
+
## ----------------------------------------------------------------------------
|
|
29
|
+
|
|
30
|
+
## ----------------------------------------------------------------------------
|
|
31
|
+
## 1.1 Aliases to get going with the gcloud command-line tool.
|
|
32
|
+
## ----------------------------------------------------------------------------
|
|
33
|
+
|
|
34
|
+
alias gcci='gcloud components install' # Install specific components.
|
|
35
|
+
alias gccsp='gcloud config set project' # Set a default Google Cloud project to work on.
|
|
36
|
+
alias gccu='gcloud components update' # Update your Cloud SDK to the latest version.
|
|
37
|
+
alias gci='gcloud init' # Initialize, authorize, and configure the gcloud tool.
|
|
38
|
+
alias gcinf='gcloud info' # Display current gcloud tool environment details.
|
|
39
|
+
alias gcv='gcloud version' # Display version and installed components.
|
|
40
|
+
|
|
41
|
+
## ----------------------------------------------------------------------------
|
|
42
|
+
## 1.2 Aliases to make the Cloud SDK your own; personalize your configuration with properties.
|
|
43
|
+
## ----------------------------------------------------------------------------
|
|
44
|
+
|
|
45
|
+
alias gccca='gcloud config configurations activate' # Switch to an existing named configuration.
|
|
46
|
+
alias gcccc='gcloud config configurations create' # Create a new named configuration.
|
|
47
|
+
alias gcccl='gcloud config configurations list' # Display a list of all available configurations.
|
|
48
|
+
alias gccgv='gcloud config get-value' # Fetch value of a Cloud SDK property.
|
|
49
|
+
alias gccl='gcloud config list' # Display all the properties for the current configuration.
|
|
50
|
+
alias gccs='gcloud config set' # Define a property (like compute/zone) for the current configuration.
|
|
51
|
+
|
|
52
|
+
## ----------------------------------------------------------------------------
|
|
53
|
+
## 1.3 Aliases to grant and revoke authorization to Cloud SDK.
|
|
54
|
+
## ----------------------------------------------------------------------------
|
|
55
|
+
|
|
56
|
+
alias gcaasa='gcloud auth activate-service-account' # Like gcloud auth login but with service account credentials.
|
|
57
|
+
alias gcacd='gcloud auth configure-docker' # Register the gcloud tool as a Docker credential helper.
|
|
58
|
+
alias gcal='gcloud auth list' # List all credentialed accounts.
|
|
59
|
+
alias gcal='gcloud auth login' # Authorize Google Cloud access for the gcloud tool with Google user credentials and set current account as active.
|
|
60
|
+
alias gcapat='gcloud auth print-access-token' # Display the current account's access token.
|
|
61
|
+
alias gcar='gcloud auth revoke' # Remove access credentials for an account.
|
|
62
|
+
|
|
63
|
+
## ----------------------------------------------------------------------------
|
|
64
|
+
## 1.4 Aliases to configuring Cloud Identity & Access Management (IAM) preferences and service accounts.
|
|
65
|
+
## ----------------------------------------------------------------------------
|
|
66
|
+
|
|
67
|
+
alias gciamk='gcloud iam service-accounts keys list' # List a service account's keys.
|
|
68
|
+
alias gciaml='gcloud iam list-grantable-roles' # List IAM grantable roles for a resource.
|
|
69
|
+
alias gciamp='gcloud iam service-accounts add-iam-policy-binding' # Add an IAM policy binding to a service account.
|
|
70
|
+
alias gciamr='gcloud iam roles create' # Create a custom role for a project or org.
|
|
71
|
+
alias gciams='gcloud iam service-accounts set-iam-policy' # Replace existing IAM policy binding.
|
|
72
|
+
alias gciamv='gcloud iam service-accounts create' # Create a service account for a project.
|
|
73
|
+
|
|
74
|
+
## ----------------------------------------------------------------------------
|
|
75
|
+
## 1.5 Aliases to manage project access policies.
|
|
76
|
+
## ----------------------------------------------------------------------------
|
|
77
|
+
|
|
78
|
+
alias gcpa='gcloud projects add-iam-policy-binding' # Add an IAM policy binding to a specified project.
|
|
79
|
+
alias gcpd='gcloud projects describe' # Display metadata for a project (including its ID).
|
|
80
|
+
|
|
81
|
+
## ----------------------------------------------------------------------------
|
|
82
|
+
## 1.6 Aliases to manage containerized applications on Kubernetes.
|
|
83
|
+
## ----------------------------------------------------------------------------
|
|
84
|
+
|
|
85
|
+
alias gcccc='gcloud container clusters create' # Create a cluster to run GKE containers.
|
|
86
|
+
alias gcccg='gcloud container clusters get-credentials' # Update kubeconfig to get kubectl to use a GKE cluster.
|
|
87
|
+
alias gcccl='gcloud container clusters list' # List clusters for running GKE containers.
|
|
88
|
+
alias gccil='gcloud container images list-tags' # List tag and digest metadata for a container image.
|
|
89
|
+
|
|
90
|
+
## ----------------------------------------------------------------------------
|
|
91
|
+
## 1.7 Aliases to create, run, and manage VMs on Google infrastructure.
|
|
92
|
+
## ----------------------------------------------------------------------------
|
|
93
|
+
|
|
94
|
+
alias gcpc='gcloud compute copy-files' # Copy files
|
|
95
|
+
alias gcpdown='gcloud compute instances stop' # Stop instance
|
|
96
|
+
alias gcpds='gcloud compute disks snapshot' # Create snapshot of persistent disks.
|
|
97
|
+
alias gcpid='gcloud compute instances describe' # Display a VM instance's details.
|
|
98
|
+
alias gcpil='gcloud compute instances list' # List all VM instances in a project.
|
|
99
|
+
alias gcprm='gcloud compute instances delete' # Delete instance
|
|
100
|
+
alias gcpsk='gcloud compute snapshots delete' # Delete a snapshot.
|
|
101
|
+
alias gcpssh='gcloud compute ssh' # Connect to a VM instance by using SSH.
|
|
102
|
+
alias gcpup='gcloud compute instances start' # Start instance.
|
|
103
|
+
alias gcpzl='gcloud compute zones list' # List Compute Engine zones.
|
|
104
|
+
|
|
105
|
+
## ----------------------------------------------------------------------------
|
|
106
|
+
## 1.8 Aliases to build highly scalable applications on a fully managed serverless platform.
|
|
107
|
+
## ----------------------------------------------------------------------------
|
|
108
|
+
|
|
109
|
+
alias gcapb='gcloud app browse' # Open the current app in a web browser.
|
|
110
|
+
alias gcapc='gcloud app create' # Create an App Engine app within your current project.
|
|
111
|
+
alias gcapd='gcloud app deploy' # Deploy your app's code and configuration to the App Engine server.
|
|
112
|
+
alias gcapl='gcloud app logs read' # Display the latest App Engine app logs.
|
|
113
|
+
alias gcapv='gcloud app versions list' # List all versions of all services deployed to the App Engine server.
|
|
114
|
+
|
|
115
|
+
## ----------------------------------------------------------------------------
|
|
116
|
+
## 1.9 Aliases to commands that might come in handy.
|
|
117
|
+
## ----------------------------------------------------------------------------
|
|
118
|
+
|
|
119
|
+
alias gckmsd='gcloud kms decrypt' # Decrypt ciphertext (to a plaintext file) using a Cloud Key Management Service (Cloud KMS) key.
|
|
120
|
+
alias gclll='gcloud logging logs list' # List your project's logs.
|
|
121
|
+
alias gcsqlb='gcloud sql backups describe' # Display info about a Cloud SQL instance backup.
|
|
122
|
+
alias gcsqle='gcloud sql export sql' # Export data from a Cloud SQL instance to a SQL file.
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env bash
|
|
2
|
-
# 🅳🅾🆃🅵🅸🅻🅴🆂 (v0.2.
|
|
3
|
-
#
|
|
2
|
+
# 🅳🅾🆃🅵🅸🅻🅴🆂 (v0.2.461) - https://dotfiles.io
|
|
3
|
+
# Made with ♥ in London, UK by @sebastienrousseau
|
|
4
|
+
# Copyright (c) 2022. All rights reserved
|
|
4
5
|
# License: MIT
|
|
5
6
|
|
|
6
7
|
# 🅶🅸🆃 🅰🅻🅸🅰🆂🅴🆂 - Git aliases.
|
|
@@ -30,7 +31,8 @@
|
|
|
30
31
|
# 3.0 Aliases to show what revision and author last modified each line of a file.
|
|
31
32
|
# 3.1 Aliases to get and set repository or global options.
|
|
32
33
|
#
|
|
33
|
-
#
|
|
34
|
+
# Made with ♥ in London, UK by @sebastienrousseau
|
|
35
|
+
# Copyright (c) 2022. All rights reserved
|
|
34
36
|
# Licensed under the MIT license
|
|
35
37
|
#
|
|
36
38
|
|
|
@@ -77,8 +79,6 @@ alias grm='git remove'
|
|
|
77
79
|
# gsc: Initialize and modify the sparse-checkout.
|
|
78
80
|
alias gsc='git sparse-checkout'
|
|
79
81
|
|
|
80
|
-
|
|
81
|
-
|
|
82
82
|
## ----------------------------------------------------------------------------
|
|
83
83
|
## 1.2 Aliases to start a working area.
|
|
84
84
|
## ----------------------------------------------------------------------------
|
|
@@ -89,8 +89,6 @@ alias gcl='git clone'
|
|
|
89
89
|
# gin: Create an empty Git repository or reinitialize an existing one.
|
|
90
90
|
alias gin='git init'
|
|
91
91
|
|
|
92
|
-
|
|
93
|
-
|
|
94
92
|
## ----------------------------------------------------------------------------
|
|
95
93
|
## 1.3 Aliases to examine the history and state.
|
|
96
94
|
## ----------------------------------------------------------------------------
|
|
@@ -114,8 +112,6 @@ alias glg='git log --oneline --graph --full-history --all --color --decorate'
|
|
|
114
112
|
# Show various types of objects.
|
|
115
113
|
alias gs='git show'
|
|
116
114
|
|
|
117
|
-
|
|
118
|
-
|
|
119
115
|
## ----------------------------------------------------------------------------
|
|
120
116
|
## 1.4 Aliases to list, create, or delete branches.
|
|
121
117
|
## ----------------------------------------------------------------------------
|
|
@@ -153,8 +149,6 @@ alias grs='git reset'
|
|
|
153
149
|
# gswb: Switch branches.
|
|
154
150
|
alias gswb='git switch'
|
|
155
151
|
|
|
156
|
-
|
|
157
|
-
|
|
158
152
|
## ----------------------------------------------------------------------------
|
|
159
153
|
## 1.5 Aliases to collaborate.
|
|
160
154
|
## ----------------------------------------------------------------------------
|
|
@@ -171,8 +165,6 @@ alias gp='git pull'
|
|
|
171
165
|
# Update remote refs along with associated objects.
|
|
172
166
|
alias gph='git push'
|
|
173
167
|
|
|
174
|
-
|
|
175
|
-
|
|
176
168
|
## ----------------------------------------------------------------------------
|
|
177
169
|
## 1.6 Aliases to record changes to the repository.
|
|
178
170
|
## ----------------------------------------------------------------------------
|
|
@@ -198,8 +190,6 @@ alias gcint='git commit --interactive'
|
|
|
198
190
|
# Commit with a message.
|
|
199
191
|
alias gcm='git commit --message '
|
|
200
192
|
|
|
201
|
-
|
|
202
|
-
|
|
203
193
|
## ----------------------------------------------------------------------------
|
|
204
194
|
## 1.7 Aliases to show changes between commits, commit and working tree, etc.
|
|
205
195
|
## ----------------------------------------------------------------------------
|
|
@@ -222,8 +212,6 @@ alias gdcached='git diff --cached'
|
|
|
222
212
|
# Generate a diffstat.
|
|
223
213
|
alias gdstat='git diff --stat --ignore-space-change -r'
|
|
224
214
|
|
|
225
|
-
|
|
226
|
-
|
|
227
215
|
## ----------------------------------------------------------------------------
|
|
228
216
|
## 1.8 Aliases to show commit logs.
|
|
229
217
|
## ----------------------------------------------------------------------------
|
|
@@ -273,8 +261,6 @@ alias glw='git log --since=1-week-ago'
|
|
|
273
261
|
# Show the log of the recent year.
|
|
274
262
|
alias gly='git log --since=1-year-ago'
|
|
275
263
|
|
|
276
|
-
|
|
277
|
-
|
|
278
264
|
## ----------------------------------------------------------------------------
|
|
279
265
|
## 1.9 Aliases to switch branches or restore working tree files.
|
|
280
266
|
## ----------------------------------------------------------------------------
|
|
@@ -294,8 +280,6 @@ alias gcode='git checkout main && git branch --merged | xargs git branch --delet
|
|
|
294
280
|
# Ensure local is like the main branch.
|
|
295
281
|
alias gcom='git checkout main && git fetch origin --prune && git reset --hard origin/main'
|
|
296
282
|
|
|
297
|
-
|
|
298
|
-
|
|
299
283
|
## ----------------------------------------------------------------------------
|
|
300
284
|
## 2.0 Aliases to update remote refs along with associated objects.
|
|
301
285
|
## ----------------------------------------------------------------------------
|
|
@@ -338,8 +322,6 @@ alias gunpub='git push origin :$(git current-branch)'
|
|
|
338
322
|
# Push current branch
|
|
339
323
|
# alias gpcb='git push origin "$(git branch|grep '\*'|tr -d '* \n')"'
|
|
340
324
|
|
|
341
|
-
|
|
342
|
-
|
|
343
325
|
## ----------------------------------------------------------------------------
|
|
344
326
|
## 2.1 Aliases to manage set of tracked repositories.
|
|
345
327
|
## ----------------------------------------------------------------------------
|
|
@@ -390,17 +372,13 @@ alias gru='git remote update'
|
|
|
390
372
|
# Shows URLs of remote repositories when listing your current remote connections.
|
|
391
373
|
alias grv='git remote -v'
|
|
392
374
|
|
|
393
|
-
|
|
394
|
-
|
|
395
375
|
## ----------------------------------------------------------------------------
|
|
396
376
|
## 2.2 Aliases to revert some existing commits.
|
|
397
377
|
## ----------------------------------------------------------------------------
|
|
398
378
|
|
|
399
|
-
alias grev='git revert'
|
|
379
|
+
alias grev='git revert' # Undo the changes from some existing commits
|
|
400
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.
|
|
401
381
|
|
|
402
|
-
|
|
403
|
-
|
|
404
382
|
## ----------------------------------------------------------------------------
|
|
405
383
|
## 2.3 Aliases to initialize, update or inspect submodules.
|
|
406
384
|
## ----------------------------------------------------------------------------
|
|
@@ -426,8 +404,6 @@ alias gsmui='git submodule update --init'
|
|
|
426
404
|
# Submodule update with initialize and recursive; this is useful to bring a submodule fully up to date.
|
|
427
405
|
alias gsmuir='git submodule update --init --recursive'
|
|
428
406
|
|
|
429
|
-
|
|
430
|
-
|
|
431
407
|
## ----------------------------------------------------------------------------
|
|
432
408
|
## 2.4 Aliases to show the working tree status.
|
|
433
409
|
## ----------------------------------------------------------------------------
|
|
@@ -447,8 +423,6 @@ alias gsts='git status --short'
|
|
|
447
423
|
# Status with short format and showing branch and tracking info.
|
|
448
424
|
alias gstsb='git status --short --branch'
|
|
449
425
|
|
|
450
|
-
|
|
451
|
-
|
|
452
426
|
## ----------------------------------------------------------------------------
|
|
453
427
|
## 2.5 Aliases to create, list, delete or verify a tag object signed with GPG.
|
|
454
428
|
## ----------------------------------------------------------------------------
|
|
@@ -462,8 +436,6 @@ alias gtg='git tag'
|
|
|
462
436
|
# Last tag in the current branch.
|
|
463
437
|
alias gtl='git describe --tags --abbrev=0'
|
|
464
438
|
|
|
465
|
-
|
|
466
|
-
|
|
467
439
|
## ----------------------------------------------------------------------------
|
|
468
440
|
## 2.6 Aliases to show various types of objects.
|
|
469
441
|
## ----------------------------------------------------------------------------
|
|
@@ -483,8 +455,6 @@ alias gshnp='git show --no-patch --pretty="tformat:%h (%s, %ad)" --date=short'
|
|
|
483
455
|
# Show who contributed, in descending order by number of commits.
|
|
484
456
|
alias gshwho='git shortlog --summary --numbered --no-merges'
|
|
485
457
|
|
|
486
|
-
|
|
487
|
-
|
|
488
458
|
## ----------------------------------------------------------------------------
|
|
489
459
|
## 2.7 Aliases to reset current HEAD to the specified state.
|
|
490
460
|
## ----------------------------------------------------------------------------
|
|
@@ -504,8 +474,6 @@ alias gress='git reset --soft HEAD~1'
|
|
|
504
474
|
# Reset to upstream.
|
|
505
475
|
alias gresu='git reset --hard $(git upstream-branch)'
|
|
506
476
|
|
|
507
|
-
|
|
508
|
-
|
|
509
477
|
## ----------------------------------------------------------------------------
|
|
510
478
|
## 2.8 Aliases to pick out and massage parameters.
|
|
511
479
|
## ----------------------------------------------------------------------------
|
|
@@ -519,8 +487,6 @@ alias grpa='git rev-parse --abbrev-ref HEAD'
|
|
|
519
487
|
# Get the upstream branch name.
|
|
520
488
|
# alias gub='git for-each-ref --format='%(upstream:short)' $(git symbolic-ref -q HEAD)'
|
|
521
489
|
|
|
522
|
-
|
|
523
|
-
|
|
524
490
|
## ----------------------------------------------------------------------------
|
|
525
491
|
## 2.9 Aliases to remove files from the working tree and from the index.
|
|
526
492
|
## ----------------------------------------------------------------------------
|
|
@@ -543,8 +509,6 @@ alias grmds='find . -name .DS_Store -exec git rm --ignore-unmatch --cached {} +'
|
|
|
543
509
|
# Remove for all deleted files, including those with space/quote/unprintable characters in their filename/path.
|
|
544
510
|
alias grmx='git ls-files -z -d | xargs -0 git rm --'
|
|
545
511
|
|
|
546
|
-
|
|
547
|
-
|
|
548
512
|
## ----------------------------------------------------------------------------
|
|
549
513
|
## 3.0 Aliases to show what revision and author last modified each line of a file.
|
|
550
514
|
## ----------------------------------------------------------------------------
|
|
@@ -552,8 +516,6 @@ alias grmx='git ls-files -z -d | xargs -0 git rm --'
|
|
|
552
516
|
# Prints per-line contribution per author for a GIT repository.
|
|
553
517
|
# alias gblau='git ls-files | xargs -n1 git blame --line-porcelain | sed -n 's/^author //p' | sort -f | uniq -ic | sort -nr'
|
|
554
518
|
|
|
555
|
-
|
|
556
|
-
|
|
557
519
|
## ----------------------------------------------------------------------------
|
|
558
520
|
## 3.1 Aliases to get and set repository or global options.
|
|
559
521
|
## ----------------------------------------------------------------------------
|
|
@@ -566,4 +528,3 @@ alias gconfl='git config --list'
|
|
|
566
528
|
|
|
567
529
|
# Output remote origin from within a local repository.
|
|
568
530
|
alias gconfr='git config --local --get remote.origin.url'
|
|
569
|
-
|