Hack Github Commit GraphStep 01: Create a new repo. Step 02: Create an empty folder on your computer. Step 03: Select your expected commit dates and scroll down |
Copy / PasteStep 04: Create a new file named dates.txt. Step 05: Copy and paste the dates below in the dates.txt file. |
Execute bashStep 06: Create a new file named dates.sh. Step 07: Copy and paste the code below in the dates.sh file. #!/bin/sh
while read date
do
fileName=`echo "$date" | tr " " "_"`
year=`echo $fileName | tail -c 5`
minimeDate="${date%?????}"
commitDate="$minimeDate 14:00 $year +0500"
name=$(git config user.name)
email=$(git config user.email)
echo "Creating file... $fileName"
touch "$fileName"
git add "$fileName"
git commit --date="$commitDate" --author="$name <$email>" -m "$fileName"
done < dates.txt
|
Commit & push origin masterStep 08: cd to directory, run the bash and init the repo. cd path/to/the/repository ./dates.sh git init Step 09: Sync local project with github repository git remote add origin git@github.com:your-username/your-project-name.git Step 10: Push it local changes to master git push --set-upstream origin master |
Contemplate your graphShare |