Re: [Tiki-devel] Git (22.x not showing up) - Lindon
Jonny Bradley via TikiWiki-devel <[email protected]>
| Newsgroups | gmane.comp.cms.tiki.devel |
|---|---|
| Message-ID | <[email protected]> |
I've also been wondering exactly this too, for ages... and been meaning to try it out. I've found my "mirror" clone on gitlab always breaks, and then takes forever to fix, so i'm afraid i'm still pushing directly into tiki :p jb > On 9 Feb 2021, at 10:37, Gary Cunningham-Lee <[email protected]> wrote: > > Hi, > > I'm setting up git again locally after having trouble with Bitnami WAMP (maybe due to some interference, MySQL would often quit or not start). I've been wanting to try out WSL - Windows Subsystem for Linux - for a while now, and so I got that going and have an Ubuntu 20.04 and LAMP on this pc ready to go. So my question is: is it actually necessary to fork the main Tiki GitLab repository to my GitLab account and then clone the forked repository to my computer? Why not just clone the main Tiki repository directly? Seems like having my GitLab fork in the middle is an unnecessary step, unless there's a reason for it. Thanks for any views/info about this. > > -- Gary > > > > On 11/17/2020 2:19 AM, Polyna-Maude R.-Summerside wrote: >> Hi Lindon >> >> See inline... >> >> On 2020-11-16 11:38 a.m., lindon--- via TikiWiki-devel wrote: >>> Thanks Polyna-Maude. Answers inline below. I did solve my problem by fetching all in one of the other branch folders I already had, checking out upstream 22.x, then pushing that branch to origin. After that I was able to create the separate branch directory for 22.x as I usually do. >>> Regards, >>> lindon >>> >>>> On Nov 15, 2020, at 4:36 PM, Polyna-Maude R.-Summerside <[email protected]> wrote: >>>> >>>> Hi ! >>>> >>>> Prime question, why do you create a directory each time you wanna work on a different branch ? >>>> >>>> >>> >>> I used the instructions here, which explain that the purpose is to reduce the disk size and since changing branches in a single repository can be impractical given the number of libraries Tiki relies on. >>>> Also, you are cloning from your own repository. Why don't you refer to the main git of the project ? >>>> >>>> >>> >>> I was trying to follow the model of using my fork as the origin that I clone from rather than the main repository. But that doesn’t work once the main repository adds a branch after I have forked. >> This will work if you add the new branch to your fork. Example, you fetch 22.x from upstream. >> >> Then you do checkout -b 22.x >> >> The you push to origin (your fork). >> >> You will have created the new 22.x in your fork. >> >> Regarding disk space, you only have to modify the branch being fetched if you want to limit disk space (the refs line in the .git/config). >> >>>> git clone --branch=22.x --reference=git.tikireference [email protected]:lindonb/tiki.git tiki22x >>>> >>>> vs >>>> >>>> git clone --branch=22.x [email protected]:tikiwiki/tiki.git tiki22x >>>> >>>> I feel (again) like you guys are still acting and thinking live if it's on SVN... >>>> >>>> >>> >>> I’m definitely used to SVN and inexperienced when it comes to git, so appreciate all your help. >>> >>>> There's probably a class on Udemy or something... >>>> >>>> PS: I have my other message waiting because it has a large size because of the books I attached. Didn't want that you get confused as I wrote a message saying you shall sync with the main repo. >>>> >>>> -- >>>> Polyna-Maude R.-Summerside >>>> >>>> https://www.tiki.org/ >>>> >>>> >>>> -Be smart, Be wise, Own your information infrastructure >>>> >>>> _______________________________________________ >>>> TikiWiki-devel mailing list >>>> [email protected] >>>> https://lists.sourceforge.net/lists/listinfo/tikiwiki-devel >>> >>> >>> >>> >>> _______________________________________________ >>> TikiWiki-devel mailing list >>> >>> [email protected] >>> https://lists.sourceforge.net/lists/listinfo/tikiwiki-devel >> -- >> Polyna-Maude R.-Summerside >> >> https://www.tiki.org/ >> >> >> -Be smart, Be wise, Own your information infrastructure >> >> >> >> >> _______________________________________________ >> TikiWiki-devel mailing list >> >> [email protected] >> https://lists.sourceforge.net/lists/listinfo/tikiwiki-devel > _______________________________________________ > TikiWiki-devel mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/tikiwiki-devel _______________________________________________ TikiWiki-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/tikiwiki-devel