A Query related to Git?
Just one doubt related to Git.Earlier we used to use SVN where central repository was present and all developers used to commit/checkout and all those stuffs.But What I dont understand is How that will work with Git.
In Git we have both push or pull command. There wont be a synchronization if every developer started to push themselve.If anyone who can make me understand how generally it gonna be help for synchronization. |
If you mean that the changes made by other users won't be available to others with Git then your wrong.
When you commit stuff with Git the data is stored to the working directory. After that you can use the push command to push to local changes to the remote repository. If your local working directory is not up-to-date the push command will fail indicating this and the user needs to run pull command to download the changes from the remote repository. After this is done and possible conflicts resolved the user can push his changes to the remote repository and thus making them available to others using that repository. I don't know if this answers your question but if you need further info you could give more details for your questions. |
Thanks for the concern. That will really informative. I have other doubts too:
1. SVN has a single master repo which is very easy to take backup of. How Can one take backup in case of GIT as all have repo running on their respective machines? 2. Can you explain me how Linus Torvald Kernel Developer work with GIT? What workflow they follow? 3. I am preparing with the Presentation on Git and need to give explanation on What Workflow can help Developers and TEsting Team work with GIT? Can you reflect some light on these? |
Quote:
Quote:
I do believe it goes something like that. Quote:
|
Thanks Zmy..
I did discussed regarding the Dictator and Lieutinant Workflow And Also Integrated WorkFlow Related to Decentralized Version Control System.The Presentation seemed fine as I collected slides from lots of Tech-Talk. few Question which Still Doubts me are : 1. My project Manager wants around 20 Colleagues to be sent a mail whenever any changes are made. Is this Possible with Git? There are 100 Colleague working on a project but he needs those 20 to know and no-one else outside. 2. Linus in his tech-talk said "You no need to checkout the complete Repository..We have something called as Submodule..Can you explain me in detail? How does it work? 3. Which you think is Best Approach - Integrated WorkFlow or Dictator & Lieutinent WorkFlow? Hope You would definitely help me in these regards. Thanks in advance. |
Quote:
Quote:
Quote:
|
One More Doubt:
I am in position to Deliver A Test Environment for Git. I have around 20 Users and requirement as follow: 1. During SVN we use to create username/passwd in passwd File. How to go for Git? 2. I need to send email So Do i need Mail Server for GIT? 3. How to go for Hooks for sending mail to specific users Only? 4. Say, I have 20 Users who have been using their own computer installed with redHat. Now On Everyone Machine Git is installed. They Pulled the Repository.( One Doubt : Any User Credential needed?) Pls Suggest |
Quote:
Quote:
Quote:
Quote:
|
Thanks for the reply.
I have one doubt which I want help on. Say, I have three users : Tux, Alice and bob. Code:
User : Tux $mkdir foo $cd foo $git init $vi foo.rb Code:
if (value == "test") $git commit -a Here comes a second User Alice Code:
Alice $cd master1 $vi foo.rb Code:
if (value == "test") Say Alice Made some changes in foo.rb at : Alice's Machine Code:
if (value == !"test"!) Code:
Tux $sudo git add remote alice /home/alice/master1 $sudo git remote update < it will show whats update from alice > $sudo git merge alice/master Code:
MERGE CONFLICT If Alice then what are the steps? Say, Tux noticed that during merging..Will he send mail to him? How he gonna know why its conflicting? I tried with Code:
git status Is it that ALICE gonna manually edit it..But how can he know what to and what not to.? I am completely stucked!! I tried removing Code:
>>>> HEAD Code:
git reset --hard HEAD |
Quote:
Quote:
|
Code:
On Tux Machine Say I made such entry He would ask alice to solve the conflict. Now How gonna Tux ask him to solve the conflict. Does Alice will be asked to update his repo? if yes, How? I dont think if tux will try merging, Alice Can see >>> <<< in his foo.rb file? Can you plsss.explain how they both gonna solve if I follow Intergrator Workflow? |
All times are GMT -5. The time now is 01:18 AM. |