Here is very simple question for experienced Git user. I've created repository on git hosting and set up mine pc:
git init
git remote add origin git@*.sourcerepo.com:*/ *.git
Then, after some changes I do:
git add .
git commit
git push
All these actions are done on first developer pc.
Now the question: How does second developer access and take changes to repo? First of all he has to clone repo?
Yes. It's going to be
for him.
Yes, you would use clone. You also should be sure to set the sharedrepository config option:
You should also be aware, with multiple commiters that the fetch option would let you preview the changes in the main repository, and how they would apply to you:
or you may want to simply see a list of files and diff each one seperately: