DEV Community

Cover image for Git Cheat Sheet- 20 commands I Use Everyday

Git Cheat Sheet- 20 commands I Use Everyday

Tabassum Khanum on December 02, 2021

Hey Coders! When I started coding, tracking changes in my codes were always painful and the fear of losing files was always there. But now we have ...
Collapse
 
namantam1 profile image
Naman Tamrakar

Very good article but I want to point out one thing that for adding the files in the staging area one must use git add -A instead of git add . as the later command stage only files that are in curent working directory or its subdirectory but not its parent directory files if you are running command from any sub directory of your project.
Read more here.

Collapse
 
codewithtee profile image
Tabassum Khanum

Thank you so much Naman for sharing this!

Collapse
 
shadowruge profile image
izaias

Very good!

Collapse
 
vishal8236 profile image
vishal patidar

Thanks for sharing this kind of knowledge ❀️

Collapse
 
007_dark_shadow profile image
Asif Vora

Very Good

Collapse
 
yashank09 profile image
Yashank Varshney

Hmm, are you sure you use all these commands 'everyday'..?

Collapse
 
vrrajasekaran profile image
vrrajasekaran

Yes

Collapse
 
rohithv07 profile image
Rohith V

Is it git remote add or git add remote. Correct me if I am wrong with this. Thank you

Collapse
 
vrrajasekaran profile image
vrrajasekaran

GIT ADD REMOTE

Collapse
 
andrewbaisden profile image
Andrew Baisden

Git it πŸ”₯

Collapse
 
codewithtee profile image
Tabassum Khanum

πŸ”₯πŸ”₯