Last active
February 1, 2021 18:06
-
-
Save lyluongthien/8a2d6d5b4dd6dac06b1382e2ae157462 to your computer and use it in GitHub Desktop.
I want to go back to the 1990s
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
#!/bin/sh | |
YEAR="1990" | |
read -p "GitHub username: " USERNAME | |
if [ -z "$USERNAME" ] | |
then | |
exit 1 | |
fi | |
mkdir $YEAR | |
cd $YEAR | |
git init | |
echo "**$YEAR** - Created with https://gist.github.com/lyluongthien/8a2d6d5b4dd6dac06b1382e2ae157462#file-me-in-1990s-sh" > README.md | |
git add . | |
GIT_AUTHOR_DATE="$YEAR-01-01T18:00:00" GIT_COMMITTER_DATE="$YEAR-01-01T18:00:00" git commit -m "$YEAR" | |
git remote add origin https://github.com/$USERNAME/me-in-1990s.git | |
git push -u origin master -f | |
cd .. | |
rm -rf $YEAR | |
echo | |
echo Cool, check your profile now: https://github.com/$USERNAME |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment