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:

  1. Based on their changes, consider the following changes:

      ┌ Collection & amp; Mail │A ← A 'B ← C │ └───┴── My later changes │ └─ Their change  

    Here I checkout A Import.zip open, comment as a and then re-apply B and C (and Whatever then). HEAD

  2. How to consider their changes based on my later changes:

      A I ← ←  A < / Code> and  import.zip  and create a patch based on the difference between them. That  C . 
  3. 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 You are right, # 3 is best I will create a branch for each person who can send you changes, check your branch, open the collection, and do your own Make changes in the branch. At some point you make your changes together with your changes You can merge, and git will point out the struggles for you, which is clearly not optimal, but to think relatively well that you are working around people's mailing zip. If I'm ready to send, then "tagging" as " 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

Popular posts from this blog

apache - 504 Gateway Time-out The server didn't respond in time. How to fix it? -

c# - .net WebSocket: CloseOutputAsync vs CloseAsync -

c++ - How to properly scale qgroupbox title with stylesheet for high resolution display? -