Git ‘Er Done

The branches of Yggdrasil, the World Tree, hold all of existence.
  • ls // list
  • git — help
  • git pull origin [branch]
  • git add . // add all changes
  • git commit -m “commit notes”
  • git push origin [branch]
  • git branch [branch] // create a new branch
  • git switch [branch] // switch the current branch
  • git merge [branch] // merge [branch] into the current branch
  • git log // list of commits (press “q” to get back to the command line)
  • git checkout [hashcode] // make a previous commit the current “pseudo branch”
  • git checkout -b [new-branch-name] [hashcode] // create a new branch from the old commit
  • git reset — hard [hashcode] // reset to an older commit
  • git push — force origin [branch] // Revert back to the older commit. WARNING: Destroys all commits afterwards! Better to make a new branch form the old commit.




An independent Unity Developer.

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Why Should You Need an Axie Infinity Clone For Your Business/Startup?

How to adjust brightness of an image with Python?

How to convert a PowerPoint PPT 97–03 Presentation to PDF in Python

How to compare two Microsoft Word DOCX Files in C# .NET Framework

Pi Protocol Weekly Updates — Week 9

The Agile Mindset for Application Developers

Docker Installation & Basic Commands

Collections in Java

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Ryan Sweigart

Ryan Sweigart

An independent Unity Developer.

More from Medium

Too much of a good thing…

Park #7: Prince’s Island Park: Third Culture Kid 🇨🇭🇫🇷🇺🇸🇬🇧🇨🇦/🇯🇲🇷🇺

The Old Fashioned Way

Out of Body