5+1 Basic GIT Commands you Need for Hacktoberfest 2022

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 beginne…


This content originally appeared on DEV Community 👩‍💻👨‍💻 and was authored by Leonardo Montini

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.
  4. commit -> Take a snapshot of the stage area (the file you just added).
  5. 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!

Youtube Video

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

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

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


This content originally appeared on DEV Community 👩‍💻👨‍💻 and was authored by Leonardo Montini


Print Share Comment Cite Upload Translate Updates
APA

Leonardo Montini | Sciencx (2022-09-30T15:14:50+00:00) 5+1 Basic GIT Commands you Need for Hacktoberfest 2022. Retrieved from https://www.scien.cx/2022/09/30/51-basic-git-commands-you-need-for-hacktoberfest-2022/

MLA
" » 5+1 Basic GIT Commands you Need for Hacktoberfest 2022." Leonardo Montini | Sciencx - Friday September 30, 2022, https://www.scien.cx/2022/09/30/51-basic-git-commands-you-need-for-hacktoberfest-2022/
HARVARD
Leonardo Montini | Sciencx Friday September 30, 2022 » 5+1 Basic GIT Commands you Need for Hacktoberfest 2022., viewed ,<https://www.scien.cx/2022/09/30/51-basic-git-commands-you-need-for-hacktoberfest-2022/>
VANCOUVER
Leonardo Montini | Sciencx - » 5+1 Basic GIT Commands you Need for Hacktoberfest 2022. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2022/09/30/51-basic-git-commands-you-need-for-hacktoberfest-2022/
CHICAGO
" » 5+1 Basic GIT Commands you Need for Hacktoberfest 2022." Leonardo Montini | Sciencx - Accessed . https://www.scien.cx/2022/09/30/51-basic-git-commands-you-need-for-hacktoberfest-2022/
IEEE
" » 5+1 Basic GIT Commands you Need for Hacktoberfest 2022." Leonardo Montini | Sciencx [Online]. Available: https://www.scien.cx/2022/09/30/51-basic-git-commands-you-need-for-hacktoberfest-2022/. [Accessed: ]
rf:citation
» 5+1 Basic GIT Commands you Need for Hacktoberfest 2022 | Leonardo Montini | Sciencx | https://www.scien.cx/2022/09/30/51-basic-git-commands-you-need-for-hacktoberfest-2022/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.