Skip to content

Instantly share code, notes, and snippets.

@11philip22
Created February 20, 2020 09:52
Show Gist options
  • Save 11philip22/c3e2201ea243b18404481bf5818739e1 to your computer and use it in GitHub Desktop.
Save 11philip22/c3e2201ea243b18404481bf5818739e1 to your computer and use it in GitHub Desktop.
git for lazy people
$date = Get-Date -Format "yyyy-MM-dd_HH:mm:ss"
if (! $args ) {
$msg = $date
} else {
$msg = $args
}
git add .
git commit -m "$msg"
git push origin master
#!/usr/bin/env bash
if [[ $# -eq 0 ]]; then
msg=`date '+%F_%H:%M:%S'`
else
msg=$@
fi
git add .
git commit -m "${msg}"
git push origin master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment