I am just moving from SVN to GIT. I have gone through the posts and comments but not finding effective solution.
I have a below questions:
-
How to checked out or Lock the files so, other developer is aware that file is unavailable and checked out by
this user ? -
If one user has updated the same file where other user is working on and both have push the changes to master repository. Now, how it resolve the conflicts or merge.
How conflict or merge works.
Do we have a option to manage conflicts in tortoiseGIT or internally manage by GIT repositories push command. ?
Please let me know the above questions resolution.
Thank You.
git is a distributed vcs so anything you do will be done to your local repository which itself is unaware of the local repositories of the other developers. So to answer question 1:
Since git doesn’t have a central server repository (you can make one but it’s only a central repository by your definition not by the design of git) there is no instance that can lock files like in svn.
There is a detailed article here on team workflows.
Merge conflicts are managed by git as far as possible. If it can’t resolve it will show that a merge conflict exists for manual resolve.