GitHub - QL Sources

Anything QL Software or Programming Related.
User avatar
XorA
Site Admin
Posts: 1365
Joined: Thu Jun 02, 2011 11:31 am
Location: Shotts, North Lanarkshire, Scotland, UK

Re: GitHub - QL Sources

Post by XorA »

Thanks Rich, moved both trees under SinclairQL group now!


RWAP
RWAP Master
Posts: 2834
Joined: Sun Nov 28, 2010 4:51 pm
Location: Stone, United Kingdom
Contact:

Re: GitHub - QL Sources

Post 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


User avatar
XorA
Site Admin
Posts: 1365
Joined: Thu Jun 02, 2011 11:31 am
Location: Shotts, North Lanarkshire, Scotland, UK

Re: GitHub - QL Sources

Post 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.


User avatar
NormanDunbar
Forum Moderator
Posts: 2271
Joined: Tue Dec 14, 2010 9:04 am
Location: Leeds, West Yorkshire, UK
Contact:

Re: GitHub - QL Sources

Post 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.


Why do they put lightning conductors on churches?
Author of Arduino Software Internals
Author of Arduino Interrupts

No longer on Twitter, find me on https://mastodon.scot/@NormanDunbar.
tcat
Super Gold Card
Posts: 633
Joined: Fri Jan 18, 2013 5:27 pm
Location: Prague, Czech Republic

Re: GitHub - QL Sources

Post 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


User avatar
NormanDunbar
Forum Moderator
Posts: 2271
Joined: Tue Dec 14, 2010 9:04 am
Location: Leeds, West Yorkshire, UK
Contact:

Re: GitHub - QL Sources

Post 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.


Why do they put lightning conductors on churches?
Author of Arduino Software Internals
Author of Arduino Interrupts

No longer on Twitter, find me on https://mastodon.scot/@NormanDunbar.
User avatar
NormanDunbar
Forum Moderator
Posts: 2271
Joined: Tue Dec 14, 2010 9:04 am
Location: Leeds, West Yorkshire, UK
Contact:

Re: GitHub - QL Sources

Post 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.


Why do they put lightning conductors on churches?
Author of Arduino Software Internals
Author of Arduino Interrupts

No longer on Twitter, find me on https://mastodon.scot/@NormanDunbar.
tcat
Super Gold Card
Posts: 633
Joined: Fri Jan 18, 2013 5:27 pm
Location: Prague, Czech Republic

Re: GitHub - QL Sources

Post by tcat »

Hi Norm,

GitHUB does not allow ssh command line. My understanding is that from the administrator's end,

Code: Select all

$ git --bare init myrepo.git
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
Last edited by tcat on Fri Dec 02, 2016 2:35 pm, edited 2 times in total.


RWAP
RWAP Master
Posts: 2834
Joined: Sun Nov 28, 2010 4:51 pm
Location: Stone, United Kingdom
Contact:

Re: GitHub - QL Sources

Post 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


User avatar
pjw
QL Wafer Drive
Posts: 1296
Joined: Fri Jul 11, 2014 8:44 am
Location: Norway
Contact:

Re: GitHub - QL Sources

Post 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..


Per
dont be happy. worry
- ?
Post Reply