Collaborate with colleagues who don’t use git -
Whenever I use git for all my projects, sometimes, I have to cooperate with colleagues. Which do not use git. They like to email their zipped sources back and forth, it is annoying and cumbersome, but I have to deal with it. The workflow is as follows:
When they require my code, then I use the git archive and give them a zip file export.zip Send. I continue to work and do the changes made by me, while they work with my old sources. Illustration:
Collection & amp; Mail │ A ← B ← C └───┴── My Later Changes After some time they send me my response file import.zip . What is the best way to import zip file in my GIT tree and how to implement it? I can think of the following three options, which are meaningfully different:
-
Based on their changes, consider the following changes:
┌ Collection & amp; Mail │A ← A 'B ← C │ └───┴── My later changes │ └─ Their changeHere I checkout
AImport.zipopen, comment asaand then re-applyBandC(and Whatever then).HEAD -
How to consider their changes based on my later changes:
A I ← ←A < / Code> andimport.zipand create a patch based on the difference between them. ThatC. -
Create and merge a branch:
A ← B ← C ← M ↖ ↙ A 'While writing the question, I came to the conclusion that this option is most commonly applied and is the strongest. Do you agree?
I am also grateful for other advice about that workflow. For example, I find it painful and error-prone that I collab-zip- & lt; Date & gt; I recommend to tag the commitment to tag a message with "some tag" or "sending changes in x because y". This tells about your last bit that the track you sent How to Keep.
Comments
Post a Comment