Skip to content

Instantly share code, notes, and snippets.

Show git log in tree fashion

git log --graph --all \ 
--format='%C(cyan dim) %p %Cred %h %C(white dim) %s %Cgreen(%cr)%C(cyan dim) <%an>%C(bold yellow)%d%Creset'
@NamanJain1902
NamanJain1902 / cp_diary.md
Last active July 2, 2022 11:41
Competitive Coding Simplified in C++
@NamanJain1902
NamanJain1902 / .gitignore
Created August 9, 2021 09:53 — forked from octocat/.gitignore
Some common .gitignore configurations
# Compiled source #
###################
*.com
*.class
*.dll
*.exe
*.o
*.so
# Packages #
@NamanJain1902
NamanJain1902 / update_git.sh
Created September 12, 2020 21:40
The easy way... [UPDATE GIT]
#!/bin/bash
sudo add-apt-repository -y ppa:git-core/ppa
sudo apt-get update
sudo apt-get install git -y