Re: [oll-user] Git for dummies
Resources for LilyPond and LaTeX users writing (about) music
Status: Alpha
Brought to you by:
u-li-1973
From: Phil H. <ma...@ph...> - 2014-01-11 13:49:11
|
----- Original Message ----- From: "David Webber" <da...@mu...> To: <ope...@li...> Sent: Saturday, January 11, 2014 1:28 PM Subject: Re: [oll-user] Git for dummies > From: Phil Holmes > >> I'm assuming you have a github account? > > Yes. With a user name and password. > >> When you "fork"ed the engraving > challenge, it would have copied the files from that page (repository == > repo) to your account, so you should now have a copy in your account.< > > OK - thanks - I had no idea that's what it did! > >>When you installed git for Windows, it should have given you a new git > program in your programs. I'm Vista, so can't say exactly how this > manifests in Win 8, but in Vista I have a Program folder called Git, and > programs called git bash and git gui. Do you have something similar? > > Yes. I actually installed two things. > > A) GitBash: seems to be a command line program, and the commands are of > the > form, I guess, that others have asked about here. But without an adequate > mental model of exactly what the commands are supposed to achieve, or what > is going where, the syntax just looks like a set of uncertain magic > incantations. (I have never used Linux, and command lines just give me > nostalgia for MS-DOS which I used back in the 1980s.) With your permission, I'll focus on this, since I'm not familiar with the Gui. FWIW I regard myself as a Windows power user, but since getting involved in LilyPond I've had to adopt some Linux, to the point now where I sometimes type 'ls' into a Windows command prompt, where I should use 'dir'. Anyway, conceptually git provides a distributed repository of files. The original was on Urs's account, and you copied this (fork) to your github account. You can now pull this down to your local machine, mess with the files and git will track this. You can then make these changes a part of the repo (commit) and get them back up to the repository on github (push). There's loads of other commands, most of which I don't know, but the few I do know should get you started. You need to start by creating the repository locally. Open the bash prompt and navigate to, or create, the directory where you want your local repository to reside. Then clone the repo from remote. I would do this with: git clone https://github.com/PhilHolmes/engraving-challenges You need to use your own username in the URL. You should see some stuff happening and you should get a copy of the files from the remote repo on your hard disk. Lunch beckons: let me know when you've done that. [snip] -- Phil Holmes |