Thursday | 21 NOV 2024
[ previous ]
[ next ]

Git Cheatsheet

Title:
Date: 2022-09-24
Tags:  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