DEV Community

Cover image for Git Cheat Sheet for Hacktoberfest

Git Cheat Sheet for Hacktoberfest

Mohammad-Ali A'RÂBI on September 23, 2024

Hacktoberfest is upon us. Here is a git cheat sheet that you can keep handy for your future hackings: 0. Git Configuration Main article...
Collapse
 
0xwdg profile image
Wesley de Groot

master is a bit outdated, main is nowadays more used.

Since the name does not contain spaces or special characters it is not required to be wrapped in quotation marks (")

# set default branch name
git config --global init.defaultBranch main
Enter fullscreen mode Exit fullscreen mode
Collapse
 
aerabi profile image
Mohammad-Ali A'RÂBI

Thanks for the comment. I added a few lines explaining the fact you just mentioned. Also, the quotation mark were left originally for a better visibility through syntax highlight.

Collapse
 
thomasbnt profile image
Thomas Bnt

Very cool post to preparing for the Hacktoberfest!

Collapse
 
aerabi profile image
Mohammad-Ali A'RÂBI

Thanks, Thomas. 😊
Looking forward to it. 🥳

Collapse
 
martinbaun profile image
Martin Baun • Edited

Great work! Nice design and amazing organization.

Would you consider adding git clean and git bisect?

Those are commands I use a lot :)

Collapse
 
aerabi profile image
Mohammad-Ali A'RÂBI

Thanks Martin. 😊
Definitely. Do you think it would be better if I add them to a follow-up article, or should I add them here?

Collapse
 
martinbaun profile image
Martin Baun

A follow up would be great!

Collapse
 
ujjwall-r profile image
Ujjwal Raj • Edited

This hacktoberfest, we are inviting contributors:

github.com/ujjwall-R/Dree

join our community group : join.slack.com/t/dreecommunity/sha...

Collapse
 
phil_enslin_035200a1266c4 profile image
Phil Enslin

Thank you. i am new to Git so this helps

Collapse
 
kin7777 profile image
kince marando

Good and and in simplicity way to recap on Git

Collapse
 
chideracode profile image
Chidera Humphrey

Nice read, Mohammad

We look forward to Hacktoberfest

Collapse
 
aerabi profile image
Mohammad-Ali A'RÂBI

Thanks, Chidera! 🫡
Yeah, me too.