Git Changes Question
Thomas Milius (7848) 116 posts |
I dared to change AcornHTTP inside Git using Iris. My question is now how to continue. How I am informing a person to perform the merge into the master branch, this means to accept my changes? Perhaps I did all this entirely wrong. In such a case it would be nice if anyone could tell me how to do it in the right way. |
John Rickman (71) 646 posts |
As I understand it you Push your changes to GitHub to a branch, then issue a Pull request to merge your branch with the master. The Pull request will be reviewed by the administrator who will approve the request and make the merge if the changes are acceptable. |
Julie Stamp (8365) 474 posts |
1) Join the RiscOS group here, “Request Access”. You’ll have to wait for that to be approved. If you haven’t already, look at “Guidance on a good merge request” at the bottom of this page. |
Thomas Milius (7848) 116 posts |
The account was assigned to me by ROOL a year ago. Assigning ROOL makes sense but it seems that I can’t assign anyone. So it ends up in nowhere :-(. It is a bit frustrating. |
Thomas Milius (7848) 116 posts |
Ok. I have requested Access to RiscOS group now. |
Colin (478) 2433 posts |
It may be easier to start again. This is what you have. Fixing it isn’t trivial – at least not for me
You should not have committed to master. So origin/master should be at HTTP-1.04. You should only have 1 commit on your branch. I see you have 2 branches – one for docs, is that deliberate? this cheatcheat in wiki is what I follow. It may be easier to take a copy of your changes, delete your fork from gitlab and start again. |
Thomas Milius (7848) 116 posts |
As I wrote: I clicked on the wrong fields on beginning at the Web gui. One branch is entirely superflous. But I didn’t find a way to remove. Perhaps I have to search one or two days. There is no need to store the changes. Code has been developed by downloading an archive. Then I changed the parts and On LINUX I am restricted to Raspian and an SD card which is in my opinion not the optimal choice to install Git. May be a couple of people are finding Git very nice. I can’t agree until now. Of course I can delete all what I did except the account itself but how (from view of GUI)? |
Colin (478) 2433 posts |
I run git on a headless orangepipc running armbian. I then connect to the orangepipc from visual studio code on my surface pro which gives a visual git view over ssh. I then compile on my armx6 which is connected to the orangepipc via lanmanfs. So plenty of hoops jumped through
I found the learning curve very steep. I had to switch to using a visual gui in visual studio code and compiling over lanmanfs to understand what I was doing.
To delete your project go to your project page, on the bottom of the menu on the left select ‘Settings→general→advanced’ and ‘Remove fork relationship’ and ‘Delete project’ |
Jeffrey Lee (213) 6048 posts |
In general, it’s not necessary to close your merge request and open a new one. Merge requests reference branches; any changes you commit to that branch will automatically be included in the request. So you can add new changes to a merge request just by updating the source branch. (However I can’t really give any advice on editing code via the gitlab web UI since I do all my editing locally)
For that kind of problem (you’ve committed to the wrong branch), “git reset” is your friend. # Switch to the branch you want to fix git checkout master # Reset it to point to a different commit. "--hard" also updates your working directory. git reset --hard HTTP-1_04 # Push the change to the remote server, with -f (--force) to get it to directly accept the change instead of trying to do a normal merge or complaining that you're doing something unusual git push -f Doing the above from a GUI is left as an exercise to the reader (a fully-fledged git GUI should support it, but I’m not sure about VSCode) |
Thomas Milius (7848) 116 posts |
I tried to delete everything as good as possible. git push -u … The connection is not accepted however. Perhaps because I am still not registered in the RISC OS Group or I meanwhile spent around one day in uploading a couple of file. The changes inside them took me only |
Thomas Milius (7848) 116 posts |
I uploaded the files again by making usage of the Web GUI. |
Colin (478) 2433 posts |
At this point you are probably thinking it’s not worth the effort. In case you are still trying this should work with the gitlab ‘Web IDE’ though I think it would be better to use git on raspian. So if using the Web IDE on the rool gitlab. 1) fork HTTP If you make a mistake like making 2 commits or an incorrect message I can’t see a way of fixing it on gitlab. If ROOL ask you to modify the changes I can’t see that you would be able to do it in the gitlab website. |