💾 Archived View for perso.pw › blog › articles › git.gmi captured on 2021-12-04 at 18:04:22. Gemini links have been rewritten to link to archived content

View Raw

More Information

⬅️ Previous capture (2021-12-03)

➡️ Next capture (2021-12-17)

-=-=-=-=-=-=-

Git cheat sheet

on Mastodon

Here is my git cheat sheet ! Because I don't like git I never remember

how to do X or Y with it so I need to write down simple commands ! (I

am used to darcs and mercurial but with the "git trend" I need to

learn it and use it).

Undo uncommited changes on a tracked file ###

$ git reset --hard

Get the latest version before working ###

$ git pull

Make a commit containing all tracked files ###

$ git commit -m "Commit message" -a

Send the commit to the repository ###

$ git push