Last active
August 29, 2015 14:06
-
-
Save erickmendonca/be7e04b662078467e291 to your computer and use it in GitHub Desktop.
Git PowerShell Profile
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
#http://stackoverflow.com/a/23201953 | |
#Create a PowerShell Profile: New-Item -Type file -Path $PROFILE -Force | |
#Edit it: notepad $PROFILE | |
#s = git status | |
function Get-GitStatus { & git status $args } | |
New-Alias -Name s -Value Get-GitStatus | |
#c = git commit -m | |
function Get-GitCommit { & git commit -am $args } | |
New-Alias -Name c -Value Get-GitCommit | |
#deploy | |
function Get-GitDeploy { | |
git checkout gh-pages | |
git merge master | |
git push --all | |
git checkout master | |
} | |
New-Alias -Name deploy -Value Get-GitDeploy | |
function Get-JekyllServe { & jekyll serve -w } | |
New-Alias -Name jek -Value Get-JekyllServe | |
function Get-SimpleHTTPServer { & python -m SimpleHTTPServer 8080 } | |
New-Alias -Name simplehttp -Value Get-SimpleHTTPServer | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment