On Tue, 30 May 2017 15:37:30 +0100, Graeme Geldenhuys <mailingli...@geldenhuys.co.uk> wrote:
>On 2017-05-30 06:53, Bo Berglund wrote: >> OK, I did not have in mind to use an RPi3 as the final system. I just >> wanted to acquaint myself with GIT using a small portable unit over >> the summer. > >In that case, you don't even need a RPi... Simply practice by doing the >following on your local system: Since my local system is a Windows 7 laptop I have to resort to an RPi to get the Linux system for which the commands are native... > mkdir /data/myremote.git > cd /data/myremote.git > git init --share --bare . So this should not be created inside some user home then? In some documents I found a new user "gituser" is created and in his home is where they placed the master repository. >You just created your remote [bare] git repository. The term "bare" >means that there is no checked out files. If you view that directory it >simply shows all the normally hidden files that git uses to manage a >repository. > >Now for your working repository where you will do you day-to-day commits: > > cd /data/devel/ > git clone /data/myremote.git/ mywork > >You will now have a Git repository in /data/devel/mywork/ which is a >clone of the /data/myremote.git repository. It as automatically set up >the "origin" as your Remote Git Repo. So if you to a git-push, the data >will go to "origin" > >Now playing around in this "mywork" repository. Create commits and >branches. Then do a git-push and magically you will have updated the >"origin" remote git repo too (which in this case is /data/myremote.git/) > >What you learn here, is exactly how you would do things with a real >remote repository. > >I highly recommend everybody interested in using Git reads the free and >open source "Pro Git" book [https://git-scm.com/book/en/v2]. It is >available online or offline in various formats (PDF, ePub etc). Is is >well written, fast to read and with tons of real-world Git examples. I have read a few chapters on-line, including installing git using the command: sudo apt-get install git-all which (of course) differs from the commands I have found in various other how-to pages concerning git... I would very much like to have a PDF copy since I usually find that easier to read than using on-line webpage versions of books. Could not find the PDF though... -- Bo Berglund Developer in Sweden _______________________________________________ fpc-other maillist - fpc-other@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-other