Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Pull-Commit-Push or Commit-Pull-Push?

Which is preferable over the other and why? If I pull before commit, do the changes that other developers made merge with what I am currently working on? If so, that means this one is more preferable?

like image 391
Johnny Beltran Avatar asked Nov 24 '17 03:11

Johnny Beltran


1 Answers

It's better to commit first. Pulling without commiting may make your work overwritten. With a local commit, conflicts will be shown and prompted for manual merging when pulling, giving you a better control over your work.

like image 114
iBug Avatar answered Oct 24 '22 21:10

iBug