github as a means to update diy projects July 24, 2013 01:54PM |
Registered: 12 years ago Posts: 36 |
Re: github as a means to update diy projects July 24, 2013 04:06PM |
Registered: 11 years ago Posts: 342 |
Re: github as a means to update diy projects July 24, 2013 04:15PM |
Registered: 12 years ago Posts: 36 |
Re: github as a means to update diy projects July 24, 2013 05:39PM |
Admin Registered: 13 years ago Posts: 730 |
Re: github as a means to update diy projects July 24, 2013 08:35PM |
Admin Registered: 11 years ago Posts: 3,096 |
Re: github as a means to update diy projects July 24, 2013 09:43PM |
Admin Registered: 13 years ago Posts: 730 |
user@blah-blah ~ $ mkdir MyTestDirectory $ cd MyTestDirectory $ git clone [github.com]That should work, but there are many ways to do this and your mileage may vary. Note: the little code block above is obscuring the actual github link. It is: h t t p s : / / github.com/josefprusa/PrusaMendel.git
Re: github as a means to update diy projects July 25, 2013 02:07AM |
Admin Registered: 13 years ago Posts: 730 |
me@MY-PC ~/Kites_and_Darts $ git inityou can run "git status" to see which files are tracked. "git add " will track that file. Here's what I did for this example:
me@MY-PC ~/Kites_and_Darts $ git status $ git add *.stl $ git add *.scad $ git commit -aif all goes well, this should open the default editor so you can enter a message for this commit. (Crash course in vi/vim: As the default editor seems to be vi or vim, this might be a confusing step if you haven't used this type of editor before. In vi, hit "i" to 'insert', then type something like 'initial commit', then hit "Escape" and type ":wq" which is shorthand for 'write and quit'. The ":" is important.) After this step you should be returned to the git bash prompt. If you run a git status now, you should get something like:
me@MY-PC ~/Kites_and_Darts $ git status # On branch master nothing to commit (working directory clean)Now you have your files commited on your local repository. Next step is to push these files to your github repo. Go online and log in to your github account and follow the instructions to make a new repository. For this example, I named it "kitesAndDarts".
me@MY-PC ~/Kites_and_Darts $ git remote add origin h t t p s : / / github.com/mattmoses/kitesAndDarts.git $ git push -u origin masterWhere of course the url for your remote will match your own repo. At this point you will be prompted for your username and password for github. If all goes well your committed files will be uploaded.
me@MY-PC ~/Kites_and_Darts $ git add README.md $ git commit -a $ git push -u origin master
Re: github as a means to update diy projects July 25, 2013 03:07AM |
Registered: 11 years ago Posts: 730 |
git commit -m "This is my commit"
Re: github as a means to update diy projects July 25, 2013 04:24AM |
Registered: 12 years ago Posts: 1,236 |
Re: github as a means to update diy projects July 25, 2013 06:33AM |
Registered: 12 years ago Posts: 36 |
Re: github as a means to update diy projects July 25, 2013 06:34AM |
Registered: 12 years ago Posts: 36 |
Re: github as a means to update diy projects July 25, 2013 08:41AM |
Registered: 13 years ago Posts: 7,616 |
Generation 7 Electronics | Teacup Firmware | RepRap DIY |
Re: github as a means to update diy projects July 25, 2013 10:46AM |
Registered: 10 years ago Posts: 180 |
Re: github as a means to update diy projects July 25, 2013 11:06AM |
Registered: 12 years ago Posts: 36 |
Re: github as a means to update diy projects July 25, 2013 11:52AM |
Registered: 11 years ago Posts: 342 |
Re: github as a means to update diy projects July 25, 2013 12:44PM |
Admin Registered: 13 years ago Posts: 730 |
Quote
Traumflug
What's wrong with the wiki? Excellent for documentation, pages can be "watched" to never miss a change and you can upload all sort of files, including STLs.