DEV Community

Discussion on: Get to Know the Command Line: Basic Git Commands

Collapse
 
chintukarthi profile image
Karthikeyan Dhanapal

It's a great article. Just one thought from my side since you follow the order of git add, git commit and then git push, I wanted to say this:

If we are working on a shared repository and two or more people are working on it. So it would be a good practice to pull the latest code from the master before pushing our local changes. So that we will always be in sync with other's pieces of code too.

Collapse
 
torianne02 profile image
Tori Crawford • Edited

Thank you for adding such a great point.

I rearranged the order multiple times. I actually had it in the order you suggest and then changed it again last minute. As this is a post geared more towards beginners, I figured I'd try to explain the most basic commands first then touch on the ones that are used when pair programming/working with others. I didn't want to make things too complicated. That's why I did the last 3 commands together, since they are all geared towards working with others and are a tad more involved.