-
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
7 changed files
with
56 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#!/usr/bin/env bash | ||
alias ll='ls -alh'; | ||
alias alias-reload='source ~/.bashrc'; | ||
alias e-alias='vim ~/.bashrc'; | ||
|
||
##cd | ||
alias cd-git='cd /e/github'; | ||
alias cd-osc='cd /e/git-oschina'; |
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,2 @@ | ||
#!/usr/bin/env bash | ||
source /e/github/fei-windows-bash/src/base/bash-aliases.sh; |
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,27 @@ | ||
#!/usr/bin/env bash | ||
|
||
#Git command | ||
alias gl='git pull'; | ||
alias gp='git push'; | ||
alias glo='git pull origin '; | ||
alias gpo='git push origin '; | ||
alias gaa='git add -A'; | ||
alias gcm='git commit -m '; | ||
alias goo='git checkout origin '; | ||
alias gc='git clone'; | ||
#git revert: | ||
alias gr='git checkout -f' | ||
|
||
|
||
alias gs='git status '; | ||
alias ga='git add '; | ||
alias gb='git branch '; | ||
alias gd='git diff'; | ||
alias go='git checkout '; | ||
alias gk='gitk --all&'; | ||
alias gx='gitx --all'; | ||
|
||
|
||
##quick commit: | ||
alias gg='/e/github/fei-windows/bash/src/git/git_quick_commit.sh'; | ||
alias ggg='gaa && gcm "Auto quick commit~" && gp'; |
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,8 @@ | ||
#!/usr/bin/env bash | ||
|
||
PWD=$0; | ||
MSG=$1; | ||
|
||
git add --all; | ||
git commit -m "$MSG"; | ||
git push; |
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,2 @@ | ||
#!/usr/bin/env bash | ||
source /e/github/fei-windows-bash/src/git/git_aliases.sh; |
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,2 @@ | ||
#!/usr/bin/env bash | ||
source /e/github/fei-windows-bash/src/base/index.sh; |
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,7 @@ | ||
# 可能的报错处理: | ||
# windows powershell ,因为在此系统中禁止执行脚本 | ||
# get-executionpolicy | ||
# set-executionpolicy remotesigned | ||
# http://www.xuebuyuan.com/489960.html | ||
|
||
& 'C:\Program Files\Git\bin\bash.exe'; |