Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.php > #8900

Re: Git (Was: can't get includes to load)

From "J.O. Aho" <user@example.net>
Newsgroups comp.lang.php
Subject Re: Git (Was: can't get includes to load)
Date 2013-03-29 13:14 +0100
Message-ID <arletqFpuidU1@mid.individual.net> (permalink)
References (6 earlier) <arfua1Fit0mU1@mid.individual.net> <MomdnYYAupYbc87MnZ2dnUVZ_oOdnZ2d@supernews.com> <QKadnX_QJO6xac7MnZ2dnUVZ_sKdnZ2d@supernews.com> <aridk7F56u8U1@mid.individual.net> <xqWdnW81I-wG38jMnZ2dnUVZ_gadnZ2d@supernews.com>

Show all headers | View raw


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 <file>..." 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

Back to comp.lang.php | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

can't get  includes to load Cal Dershowitz <cal@example.invalid> - 2013-03-25 23:52 -0700
  Re: can't get  includes to load "J.O. Aho" <user@example.net> - 2013-03-26 09:36 +0100
    Re: can't get  includes to load Cal Dershowitz <cal@example.invalid> - 2013-03-26 14:50 -0700
      Re: can't get  includes to load Jim Higgins <ILikeMy@Privacy.bogus> - 2013-03-27 02:14 +0000
        Re: can't get  includes to load "J.O. Aho" <user@example.net> - 2013-03-27 07:53 +0100
          Re: can't get  includes to load Cal Dershowitz <cal@example.invalid> - 2013-03-27 02:35 -0700
            Re: can't get  includes to load "J.O. Aho" <user@example.net> - 2013-03-27 11:00 +0100
              Re: can't get  includes to load "J.O. Aho" <user@example.net> - 2013-03-27 11:03 +0100
              Re: can't get  includes to load Cal Dershowitz <cal@example.invalid> - 2013-03-28 00:17 -0700
                Git (Was: can't get  includes to load) "J.O. Aho" <user@example.net> - 2013-03-28 08:35 +0100
                Re: can't get  includes to load Cal Dershowitz <cal@example.invalid> - 2013-03-28 00:41 -0700
                Git (Was: can't get  includes to load) "J.O. Aho" <user@example.net> - 2013-03-28 09:34 +0100
                Re: Git (Was: can't get  includes to load) Cal Dershowitz <cal@example.invalid> - 2013-03-29 00:28 -0700
                Re: Git (Was: can't get  includes to load) "J.O. Aho" <user@example.net> - 2013-03-29 13:14 +0100
                Re: Git (Was: can't get  includes to load) Cal Dershowitz <cal@example.invalid> - 2013-03-31 00:31 -0700
                Re: Git (Was: can't get  includes to load) "J.O. Aho" <user@example.net> - 2013-03-31 11:54 +0200
        cleaning up first php page was Re: can't get  includes to load Cal Dershowitz <cal@example.invalid> - 2013-03-27 00:00 -0700
          Re: cleaning up first php page was Re: can't get  includes to load "J.O. Aho" <user@example.net> - 2013-03-27 09:06 +0100
            Re: cleaning up first php page was Re: can't get  includes to load Cal Dershowitz <cal@example.invalid> - 2013-04-04 01:48 -0700
              Re: cleaning up first php page was Re: can't get  includes to load Cal Dershowitz <cal@example.invalid> - 2013-04-04 01:52 -0700
              Re: cleaning up first php page was Re: can't get  includes to load Jerry Stuckle <jstucklex@attglobal.net> - 2013-04-04 08:57 -0400
        Re: can't get  includes to load Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2013-03-27 09:08 +0100

csiph-web