cheatsheets devlog projects search

git-cheatsheet.md

Git Cheatsheet

2022-09-24 2


git init

git add --all

git commit -m "message"

git commit -a -m "message"

git remote add origin {url}

git clone {url} {name}

git pull origin master

git log --pretty=oneline

git show {hash}:/path/to/file

git checkout {hash} -- {filename}

git reset HEAD^ 

git reset {hash}

More information at:

https://nivethan.dev/devlog/git-in-a-minute.html