Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

How would I sync access, if more than one people ssh-pushes onto the git repo? I assume syncing be necessary.




Same as always, with any other remote?

(Use `git pull`? If the different people push to different branches, then there's no conflict and no problem. If you try to push different things into the same branch, the second person will get told their branch is out of date. They can either rebase or - if this is allowed by the repo config - force push over the previous changes...)


Sure, if they push one after the other. If they push at the same time however, does Git handle the sync on its own?

yeah

nice, thx



Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: