Welcome to Manikandan.me
__ ______ _ ________ __ ___ _ ______ ___ _ __ __ _________
/ |/ / | / | / / _/ //_// | / | / / __ \/ | / | / / / |/ / ____/
/ /|_/ / /| | / |/ // // ,< / /| | / |/ / / / / /| | / |/ / / /|_/ / __/
/ / / / ___ |/ /| // // /| |/ ___ |/ /| / /_/ / ___ |/ /| / _ / / / / /___
/_/ /_/_/ |_/_/ |_/___/_/ |_/_/ |_/_/ |_/_____/_/ |_/_/ |_/ (_) /_/ /_/_____/
Hi this is my personal cheatsheet.
Git cheatsheet
Seeing commit between two dates:
git rev-list --count --since="Apr 15 2020" --before="May 4 2020" --all
Seeeing commint on user basic and dates:
git shortlog -sne --since="01 Jan 2020" --before="01 Aug 2020" #for present branch
git shortlog -sne --since="01 Jan 2020" --before="01 Aug 2020" --all #for all branch
To remove a submodule you need to:
git submodule deinit <path_to_submodule>
git rm <path_to_submodule>
git commit-m "Removed submodule "
rm -rf .git/modules/<path_to_submodule>
Create SSH RSA key
ssh-keygen -m PEM -t rsa -b 4096
Delete backups after 7 days
find /var/opt/backups/ -type f -mtime +7 -name '*.tar' -delete