LanX has asked for the wisdom of the Perl Monks concerning the following question:
we have a rather complicated web-application where each "Page" is just implemented as a .pl script in a directory on our DEV server.
Since our team was growing, working on that instance became more an more unstable and SVN versioning was mostly broken.
That's why I created my own working environment on my laptop, developing my pages there and copying them to DEV for public testing when ready (before finally moving them to PROD)
Of course I started using GIT locally and commited every change.
Now, 18 month later I got a new laptop and copied the new working copy to have a clean base.
In the meantime some other colleagues started to use GIT too and commited their changes for their files into the copy of the DEV server.
One colleague even set up a GIT-lab server so that we can now push our changes to a central GIT instance.
What's the best way to retrofit my commit history on the old copy into the actual Master version? (don't wanna loose it)
From my understanding they would get lost because the Master is already up-to-date.
The best idea I had was to identify the files I changed, check out the first local versions, copy them to DEV, and to push all changes.
Another one is to just leave all local commits in a branch.
I never used GIT in an team environment with beginners and am puzzled about the best approach, I'm sure I'm not the first having this problem... :)
see also XKCD ;-)
Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery
FootballPerl is like chess, only without the dice
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: [OT] complex GIT merging
by atcroft (Abbot) on Sep 26, 2018 at 15:44 UTC | |
|
Re: [OT] complex GIT merging
by haukex (Archbishop) on Sep 26, 2018 at 19:02 UTC | |
|
Re: [OT] complex GIT merging
by wjw (Priest) on Sep 27, 2018 at 00:10 UTC | |
by LanX (Saint) on Sep 27, 2018 at 16:05 UTC | |
|
Re: [OT] complex GIT merging
by karlgoethebier (Abbot) on Sep 27, 2018 at 15:24 UTC |