Skip to content

Instantly share code, notes, and snippets.

@ducke
Forked from devlead/git-random-tip.ps1
Created November 9, 2015 15:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ducke/98bff63fa69d1e862123 to your computer and use it in GitHub Desktop.
Save ducke/98bff63fa69d1e862123 to your computer and use it in GitHub Desktop.
PowerShell scrips that displays random GIT tips
(irm https://raw.githubusercontent.com/git-tips/tips/master/tips.json)|sort {random}|select -First 1|% {"$($_.title)`r`n$($_.tip)" }
> .\git-random-tip.ps1
Modify previous commit without modifying the commit message
git add --all && git commit --amend --no-edit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment