5+1 Basic GIT Commands you Need for Hacktoberfest 2022

September 30, 2022

Last updated: September 11, 2023

278 words

Post contents

Hacktoberfest is starting tomorrow!! Are you ready??

In case you're quite new to git, I will try to explain in a simple way how to use the basic commands you absolutely need to contribute to Open Source.

Disclaimer: this tutorial is meant for beginners. I will oversimplify a little bit to make sure the concepts can be easily understood by someone who might have never used git or has little experience.

The commands are:

  1. clone -> Copy a remote repository in your computer.
  2. checkout -> Create a new branch.
  3. add -> Put your local changes in the stage area.
  • status -> Not mandatory, just to see the current state is all as expected.
  1. commit -> Take a snapshot of the stage area (the file you just added).
  2. push -> Upload your commit(s) to the remote repository.

Technically, you could do all these steps even without commands in terminal but with a GUI (Graphical User Interface) such as GitHub Desktop or Sourcetree, however since git is such a widespread and useful tool you're gonna use everyday, you must know at least the basics.


If you want to see how these commands can be used in a real case, you can watch this video I just uploaded on my YouTube Channel where i talk about Open Source and Web Development!

An embedded webpage:The 5 GIT Commands to INSTANTLY Get Started on Hacktoberfest!


Thanks for reading this post, I hope you found it interesting!

Feel free to follow me to get notified when new articles are out ;)

View profile
Awarded GitHub Star since 2023 ⭐️ and Microsoft MVP since 2024 🔷 I talk about Open Source, GitHub, and Web Development. I also run a YouTube channel called DevLeonardo, see you there!

Do you like my content? You might consider subscribing to my YouTube channel! You can find it here: YouTube

Subscribe to our newsletter!

Subscribe to our newsletter to get updates on new content we create, events we have coming up, and more! We'll make sure not to spam you and provide good insights to the content we have.