how to change your GitHub first commit history timestamp All In One
how to change your GitHub first commit history timestamp All In One
magic.sh
#!/usr/bin/env sh
_() {
YEAR="1977"
echo "Github Username: "
read -r USERNAME
[ -z "$USERNAME" ] && exit 1
[ ! -d $YEAR ] && mkdir $YEAR
cd "${YEAR}" || exit
git init
echo "**${YEAR}** - Generated by https://github.com/xgqfrms/git-commit-history-script" \
>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}/${YEAR}.git"
git branch -M main
git push -u origin main -f
cd ..
rm -rf "${YEAR}"
echo
echo "Cool, check your profile now: https://github.com/${USERNAME}"
} && _
unset -f _
$ sh -c "$(curl -fsSL https://raw.githubusercontent.com/xgqfrms/cdn/gh-pages/linux/bash/magic.sh)"
refs
https://cdn.xgqfrms.xyz/linux/bash/magic.sh
https://raw.githubusercontent.com/xgqfrms/cdn/gh-pages/linux/bash/magic.sh
©xgqfrms 2012-2020
www.cnblogs.com/xgqfrms 发布文章使用:只允许注册用户才可以访问!
原创文章,版权所有©️xgqfrms, 禁止转载 🈲️,侵权必究⚠️!
本文首发于博客园,作者:xgqfrms,原文链接:https://www.cnblogs.com/xgqfrms/p/15978535.html
未经授权禁止转载,违者必究!