Skip to content
This repository was archived by the owner on Mar 8, 2025. It is now read-only.

Commit 5c8a2c3

Browse files
committed
🔇 silent changes: add unify function about git #17
1 parent 98bce74 commit 5c8a2c3

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

src/git.sh

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,7 @@ function git_tags_released() {
155155
done
156156
}
157157
alias gittagsreleased="git_tags_released"
158+
alias gtr="git_tags_released"
158159

159160
# git_create_tag function
160161
# Sets an alias to create a new Git tag with an annotated message for release.
@@ -188,6 +189,7 @@ function git_create_tag() {
188189
wsd_exe_cmd git tag -a "$1" -m ":gem: release: $1 created successfully"
189190
}
190191
alias gitcreatetag="git_create_tag"
192+
alias gct="git_create_tag"
191193

192194
# git_push_tag function
193195
# Sets an alias to push a specific Git tag to the remote repository.
@@ -450,6 +452,7 @@ function git_remove_tag() {
450452
send_telegram_git_activity "Removed tag \`$1\` on remote =)"
451453
}
452454
alias gitremovetag="git_remove_tag"
455+
alias grmt="git_remove_tag"
453456

454457
# git_remove_branch function
455458
# Removes a Git branch both locally and on the remote repository.
@@ -479,6 +482,7 @@ function git_remove_branch() {
479482
send_telegram_git_activity "Removed branch \`$1\` on remote =)"
480483
}
481484
alias gitremovebranch="git_remove_branch"
485+
alias grmb="git_remove_branch"
482486

483487
# git_create_branch function
484488
# Creates a new Git branch and switches to it, then pushes the branch to the remote repository.
@@ -546,6 +550,7 @@ function git_fetch_branch() {
546550
wsd_exe_cmd git pull -f
547551
}
548552
alias gitfetchbranch="git_fetch_branch"
553+
alias gfb="git_fetch_branch"
549554

550555
# git_fetch_branch_current function
551556
# Fetches the latest changes for the currently checked-out Git branch from the remote repository.
@@ -574,6 +579,7 @@ function git_fetch_branch_current() {
574579
wsd_exe_cmd git pull -f
575580
}
576581
alias gitfetchbranchcurrent="git_fetch_branch_current"
582+
alias gfbc="git_fetch_branch_current"
577583

578584
# git_fetch_remote_branch_checkout function
579585
# Fetches a remote Git branch and checks it out locally.
@@ -605,8 +611,11 @@ function git_fetch_remote_branch_checkout() {
605611
fi
606612
wsd_exe_cmd git fetch origin "$1":"$1"
607613
wsd_exe_cmd git checkout "$1"
614+
wsd_exe_cmd git fetch --all --tags
615+
wsd_exe_cmd git pull -f
608616
}
609-
alias gitfetchremotebranchcheckout="git_fetch_remote_branch_checkout"
617+
alias gitfetchbranchremotecheckout="git_fetch_remote_branch_checkout"
618+
alias gfbr="git_fetch_remote_branch_checkout"
610619

611620
# git_push_branch_remote_force function
612621
# Force-push a local Git branch to its remote counterpart.

0 commit comments

Comments
 (0)