DEV Community

Cover image for 10 Must-Know Git Commands for Every Developer

10 Must-Know Git Commands for Every Developer

Mukesh Kuiry on January 05, 2024

Understanding Git and GitHub is crucial for any developer, providing effective version control and code management. Proficiency in these tools sets...
Collapse
 
taqui profile image
Taqui •

Awesome Guide on Github Commands 🔥

Thanks for sharing this💖

Collapse
 
mukeshkuiry profile image
Mukesh Kuiry •

Thanks for appreciation! ❤️

Collapse
 
dev_saheb profile image
NayemulSCode •

really good article 👌

Collapse
 
vepifanio profile image
Victor Epifânio •

Awesome content!
Thanks for sharing! 💖

Collapse
 
omi profile image
Omi •

that was great, but im stil confused on git resest part
could u just had added some visualize or example would be better

Collapse
 
mukeshkuiry profile image
Mukesh Kuiry •

For example, your company wants to ship their product every Saturday night, but you, as a developer, mistakenly committed the changes before Saturday to the main

In that case, you need to remove the changes from the main branch. Removing the changes one by one may be complex. In that case, you just need to run the git reset command to remove the last commit.

Hope that makes sense.

Collapse
 
drgrey profile image
Dr-Grey •

Would probably be a good idea to include a script that'd run on demand or per schedule that does pull for number of branches specified .

Collapse
 
mukeshkuiry profile image
Mukesh Kuiry •

Yeah, that's a good idea, but it may not be efficient for the project, which took a long time to build. As it may be more prone to errors, like conflicts.

Collapse
 
tijuana22 profile image
Tijuana Hunt •

Thanks for sharing!

Collapse
 
issa1960 profile image
ISSA NDAGI UMARU •

Wow interesting 👍🏾

Collapse
 
soansuiyan profile image
SoanSuiyan •

prueba

Collapse
 
webjose profile image
José Pablo Ramírez Vargas •

Don't expect much of AI-created, artificially upvoted articles.

Collapse
 
dipayansukul profile image
Dipayan Sukul •

Good content for those who are starting up.

Collapse
 
mukeshkuiry profile image
Mukesh Kuiry •

Yeah, thanks 🙏

Collapse
 
sripartha99 profile image
Parthasarathy •

Thank you for sharing such powerful git commands... Very useful 😀👍🏻

 
webjose profile image
José Pablo Ramírez Vargas •

Artificially upvoted articles are the ones that usually start with 5 reactions: One reaction each (heart, unicorn, mind-blowing, etc.). A few "authors" have access to more fake/bot accounts and their articles start with more reactions, but usually all individual reaction counts will be the same.

AI-created articles usually follow 2 or 3 very specific patterns, but most have a Conclusion section, use bulleted or numbered lists rather heavily and title hierarchies are always there. You'll get the hang of those rather quickly.

Collapse
 
wesborland profile image
Marcos Javier Gomez Hollger •

Oh, thanks... Very useful! ❤️

Collapse
 
anickacodes profile image
Nicki •

Very nice & detailed! Thank you

Collapse
 
azharvalley profile image
Kamal Azhar •

It's handy and day to day used git command.
Nicely explained.
Cheers!

Some comments have been hidden by the post's author - find out more