Skip to content

Instantly share code, notes, and snippets.

@erickmendonca
Last active August 29, 2015 14:06
Show Gist options
  • Save erickmendonca/be7e04b662078467e291 to your computer and use it in GitHub Desktop.
Save erickmendonca/be7e04b662078467e291 to your computer and use it in GitHub Desktop.
Git PowerShell Profile
#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