Created
February 20, 2020 09:52
-
-
Save 11philip22/c3e2201ea243b18404481bf5818739e1 to your computer and use it in GitHub Desktop.
git for lazy people
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
$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 |
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
#!/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