DEV Community

Discussion on: Git Cheat Sheet- 20 commands I Use Everyday

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!