Try   HackMD

This note covers all the common pitfalls I’ve encountered—those annoying issues I kept having to search for over and over. Here’s a collection of all the solutions I found, dumped in one place for easy reference.


Delete all commit history in GitHub

# main branch
git checkout --orphan latest_branch
git add .
git commit -m "commit message"
git branch -D main
git branch -m main
git push -f origin main

# master branch
git checkout --orphan latest_branch
git add .
git commit -m "commit message"
git branch -D master
git branch -m master
git push -f origin master

Calculate hash in cmd

certUtil -hashfile C:\Windows\System32\ntdll.dll SHA256
certUtil -hashfile C:\Windows\System32\ntdll.dll SHA1
certUtil -hashfile C:\Windows\System32\ntdll.dll MD5

Git clone .git redundant push

git clone <repo>
cd <repo>
rm -rf .git 
cd ..
git rm --cached <repo>
OR git rm --cached *
git add . && git commit -m "$(date)" && git branch -M main && git push -u origin main