Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!news.swapon.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: "J.O. Aho" Newsgroups: comp.lang.php Subject: Re: Git (Was: can't get includes to load) Date: Fri, 29 Mar 2013 13:14:50 +0100 Lines: 61 Message-ID: References: <3bednVqnL5qAhc_MnZ2dnUVZ_q6dnZ2d@supernews.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: individual.net nKxxKJNJV3mU4bk72P6yXQV5vH1hyjiRR28jmD03iCbvn1/9rq Cancel-Lock: sha1:R9aXBd0HPeFt4yiDxNkrrU3N7Zg= User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130326 Thunderbird/17.0.4 In-Reply-To: Xref: csiph.com comp.lang.php:8900 On 29/03/13 08:28, Cal Dershowitz wrote: > On 03/28/2013 01:34 AM, J.O. Aho wrote: >> On 28/03/13 08:41, Cal Dershowitz wrote: > >> after you run "git init" there will be a .git directory in the directory >> where you did the "git init" in. > > I don't see it, and I just ran it. > I try to understand, but since I don't see a .git file in root, > apparently I don't. > $ pwd > /home/sites/migrate/php/php1 > $ ls -l "ls -l" will not show it, as it's a hidden directory, you need to use "ls -la", where the "a" is all. > $ git init && git commit -m "initial commit" > Initialized empty Git repository in /home/sites/migrate/php/php1/.git/ > # On branch master > # > # Initial commit > # > # Untracked files: > # (use "git add ..." to include in what will be committed) > # > # git1.txt > # git1.txt~ > # includes/ > # index.php > # readme.txt > # readme.txt~ > # style.css > nothing added to commit but untracked files present (use "git add" to > track) This shows you created the git repository, before you can commit something, you need to add the files you want to track. git add index.php includes readme.txt style.css and then you can make the commit. Remember I told earlier in this thread that the 'git commit -m "something" -a' only works on files you already are tracking of, in an empty git repository you ain't tracking anything, those you need to add files with "git add". Please read this page: http://refcardz.dzone.com/refcardz/getting-started-git If you want more in depth video: http://excess.org/article/2008/07/ogre-git-tutorial -- //Aho