I can't imagine there is very much to discuss about it. It just comes down to the order of the merging, and any justifications that are to be made one way or the other about that. I am happy to see it done either way.hamishmb wrote: ↑15/07/2020, 16:44 It doesn't particularly matter to me. It also depends on the order that we merge things, but I'm going to make a new forum topic for that. You and Terry and I may need to have a call to discuss that - I have a feeling it'll be difficult to have that discussion on here.
I do have backups. I don't just have one copy of my work.hamishmb wrote: ↑15/07/2020, 16:44Ah I see, that makes sense. I haven't got much experience squashing commits together, but we'll need to do that when we merge I guess, so I'll do some research. I usually work online - I worry that if I only have a local copy I'll somehow wind up losing it Supposedly pushing to a separate GitLab branch will be as simple as:PatrickW wrote: ↑15/07/2020, 14:34 I could push my branch onto GitLab. I would like to squash my commits though, because I started out using one email address and then decided I would rather not publish that address in a git repository and changed it to a different one, so I need to make sure that some of my earlier commits are not published. I'm a little bit unsteady on my feet when it comes to using git in a non-local manner, though, since I've not had much practice. (Can you advise me?)
And then the new branch will appear online.Code: Select all
git remote add origin [email protected]:wmtprojectsteam/rivercontrolsystem.git (if you haven't already done this) git push origin <your-branch-name>
After this, new commits can be added with a simple:
Code: Select all
git push origin <your-branch-name>
I've used git with a remote before, but not extensively and never with branches and merging. So, I feel pretty confident pushing things to a remote, but I'm a bit out of my depth with things like merging and rebasing. And git seems to be a minefield of terminology that sounds like it should mean one thing but actually means something entirely different. I find that the man pages do not give me a very clear picture of how everything is supposed to work. I need more diagrams! I have been meaning for ages to look for a book on the subject that has some practical exercises to work through. (I've just added it to my shopping list, before I forget again.)
I've just re-read the man page for git merge --squash, and realised that I am probably using the wrong terminology when I said "squash", because it seems to be talking about something different than what I thought I was talking about. What I want to do is erase some of the history of my commits, so that it looks as though all the changes contained in those commits were made in one big commit. I think I might be talking about rebasing, perhaps? I don't know. I need to spend some time to work through it and figure out what I have to do to it. I will prioritise that, because it sounds like you would find it really helpful to have sight of my work at this point.