:: krowemoh

Friday | 13 DEC 2024
Posts Links Other About Now

previous
next

Git Cheatsheet

2022-09-24
cheatsheet


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