Page 2 of 3
Re: GitHub - QL Sources
Posted: Mon Nov 14, 2016 3:20 pm
by XorA
Thanks Rich, moved both trees under SinclairQL group now!
Re: GitHub - QL Sources
Posted: Mon Nov 14, 2016 3:34 pm
by RWAP
XorA wrote:Thanks Rich, moved both trees under SinclairQL group now!
Can we ask how you move trees under the Group - as I am not sure other than cloning the existing tree
Re: GitHub - QL Sources
Posted: Mon Nov 14, 2016 3:43 pm
by XorA
RWAP wrote:XorA wrote:Thanks Rich, moved both trees under SinclairQL group now!
Can we ask how you move trees under the Group - as I am not sure other than cloning the existing tree
Go to the source tree and click the fork button, it will ask what group you want to fork into.
Re: GitHub - QL Sources
Posted: Tue Nov 15, 2016 9:11 pm
by NormanDunbar
Another free book, about GitHub itself, is available in pdf or mobi format at
https://www.syncfusion.com/resources/te ... Succinctly but you do have to register for a free account.
I've had a look through it and it's not bad, some bits are out of date, but in the main, it's a decent introduction to GitHub.
If anyone is interested that is!
Cheers,
Norm.
Re: GitHub - QL Sources
Posted: Mon Nov 21, 2016 1:44 pm
by tcat
Hi Norm,
I have studied your recommended reads, plus some other.
I have setup my ssh public key, and tied it to my account, I can now access the repositories using
origin
Code: Select all
$ git remote add origin git@github.com:SinclairQL/qzip.git
Creating repositories seem possible only at the Git web, right?
Many thanks
Tomas
Re: GitHub - QL Sources
Posted: Mon Nov 21, 2016 5:03 pm
by NormanDunbar
Hi Tomas,
I haven't ever created a repository by not using the Web interface, yet, but I'm almost certain that you can import an existing one into GitHub.
I'll have a look and see what I can find out later.
Cheers,
Norm.
Re: GitHub - QL Sources
Posted: Tue Nov 22, 2016 12:15 pm
by NormanDunbar
Looks like importing a repository still needs you to use the Web interface. Which makes sense I suppose as the servers where the repository is to be created will belong to Github.
Cheers,
Norm.
Re: GitHub - QL Sources
Posted: Fri Dec 02, 2016 9:02 am
by tcat
Hi Norm,
GitHUB does not allow ssh command line. My understanding is that from the administrator's end,
will just create the empty repository, this step has to be done by web on machines that you do not run your own GIT server.
To sync project files from user's local, all can be done on command line.
Code: Select all
$ git remote add origin git@github.com:SinclairQL/myrepo.git
$ git add myrepo/*.{c,h}
$ git commit
$ git push origin master
Then local and remote are in sync.
To push a new revision from local.
Code: Select all
$ git commit
$ git push origin master
The beauty of GIT is that more collaborators can work on the same source at the same time, each in its own branch forked from the master. Then final revision can be merged. This step I did not learn yet as it also involves some user access rights I believe.
Tomas
Re: GitHub - QL Sources
Posted: Fri Dec 02, 2016 10:37 am
by RWAP
I currently use a desktop Github client on my Windows based PC to keep the copy on my PC in sync with the version on the github... That is quite useful
Re: GitHub - QL Sources
Posted: Fri Dec 02, 2016 4:22 pm
by pjw
Im not sure I like the way Git thinks, or messes with my stuff. (Im pretty sure God didnt write the world in C as the assumption seems to be over at GitHub!) I uploaded a small test project but it didnt turn out the way I wanted. But its early days and perhaps Im merely banging my head against the learning wall (or maybe it is just a steep curve afterall). I hope its possible to hide the embarrassing stuff later when I get wise..