-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
63 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
#!/bin/sh | ||
|
||
# add | ||
alias gap='git add . --patch' | ||
|
||
# fetch | ||
alias gf='git fetch' | ||
alias gfa='git fetch --all' | ||
|
||
# push | ||
alias gpl='git pull' | ||
alias gplr='git pull --rebase' | ||
|
||
# push | ||
alias gp='git push -u origin "$(git branch --show-current)"' | ||
alias gpf='git push -u origin "$(git branch --show-current)" --force-with-lease' | ||
|
||
# branch | ||
alias gbl='git branch -l' | ||
alias gbd='git branch -D' | ||
alias gb='git branch' | ||
|
||
# checkout | ||
alias gc='git checkout' | ||
alias gcb='git checkout -b' | ||
alias gcp='git checkout -p' | ||
|
||
# status | ||
alias gs='git status' | ||
|
||
# commit | ||
alias gcm='git commit' | ||
alias gcma='git commit --amend' | ||
alias gcmane='git commit --amend --no-edit' | ||
|
||
# rebase | ||
alias gr='git rebase --commiter-date-is-author-date' | ||
alias grc='git rebase --continue' | ||
alias gra='git rebase --abort' | ||
alias grm='git fetch && git rebase origin/$(git branch --list | grep -E "main|master" | tr -d " ")' | ||
|
||
# reset | ||
alias grp='git reset -p' | ||
|
||
# log | ||
alias grl='git reflog' | ||
alias gl="git log --color --date=iso --format=fuller" | ||
|
||
# diff | ||
alias gd="git diff" | ||
alias gds="git diff --staged" | ||
|
||
# show all git aliases | ||
alias gal='cat $HOME/.bash_aliases | grep "alias g"' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#!/bin/sh | ||
|
||
alias tp='terraform init --upgrade && terraform plan -out=../../plan' | ||
alias ta='terraform apply "../../plan"' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters