Last active
December 22, 2021 19:51
-
-
Save wes-goulet/16ad9bc1b711a3b5a493571029012e1c to your computer and use it in GitHub Desktop.
aliases for bash on windows
This file contains hidden or 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
alias gs='git status' | |
alias ga='git add --all' | |
alias gf='git fetch --all --prune' | |
alias gsu='git submodule sync && git submodule update --init --recursive' | |
alias repos='cd ~/Source/Repos' | |
alias sln='start *.sln' | |
alias startssh='eval `ssh-agent -s` && ssh-add ~/.ssh/id_rsa' | |
alias gt='echo Fetch then show local tags: && git fetch --tags && git tag -l --sort=v:refname' | |
alias gtu='echo Fetch upstream then show local tags: && git fetch --tags upstream && git tag -l --sort=v:refname' | |
alias grt='echo Remote Tags: && git ls-remote --tags | sort -t '"'"'/'"'"' -k 3 -V | awk '"'"'{print $2}'"'"' | grep -v "{}"' | |
alias grtu='echo Remote Upstream Tags: && git ls-remote --tags upstream | sort -t '"'"'/'"'"' -k 3 -V | awk '"'"'{print $2}'"'"' | grep -v "{}"' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Configure git bash
Open Git Bash
Generate SSH Keys:
Add your public key to github
Add the following lines to
~/.bash_profile
Add some useful aliases (from this gist, feel free to use your own aliases, although the remaining commands below assume the given aliases were used)