A
A
Andrey Sergeev2015-04-28 08:44:47
git
Andrey Sergeev, 2015-04-28 08:44:47

There are two computers and one git server. How to transfer non-atomic changes from one computer to another without polluting the commit history?

I made some small changes in the project at home, but the code is not finished yet. At work, you need to continue these changes. I don’t want to write everything again and commit incomplete code.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Victor, 2015-04-28
@beeasy

What are you using Git for?
In my opinion, this is what it is for, to take (clone) the code from one place (server), edit (commit) it and place (push) it again in the same place.
What prevents you from pushing this into a separate branch, and then finalizing it at work? Why go through the hassle of porting code when Git does a great job of it?
Another option, of course, is to carry the entire storage folder with you and work in it.

S
Sergey, 2015-04-28
@begemot_sun

apparently git diff will help you

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question