Re: Git (Was: can't get includes to load) [message #180989 is a reply to message #180963] |
Sun, 31 March 2013 07:31 |
Cal Dershowitz
Messages: 36 Registered: February 2013
Karma:
|
Member |
|
|
On 03/29/2013 05:14 AM, J.O. Aho wrote:
>
> "ls -l" will not show it, as it's a hidden directory, you need to use
> "ls -la", where the "a" is all.
>
Geez, thx JO, I think I'm in the clear on this now. This was a tough
thread for me in that the -a meant completely different things as a
modifcation to git as opposed to ls. I do kep my "learning experiences
journaled, tho. They show up as git1.txt. That's not a file that needs
to be committed to git because it's me pasting my litany of
mistakes/learning to it, and it isn't in any way executable.
> 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
>
$ ls -la
total 36
drwxr-xr-x 4 fred automation 4096 Mar 29 00:09 .
drwxr-xr-x 3 fred automation 4096 Mar 28 00:18 ..
drwxr-xr-x 7 fred automation 4096 Mar 29 00:09 .git
-rw-r--r-- 1 fred automation 1947 Mar 29 00:08 git1.txt
-rw-r--r-- 1 fred automation 1902 Mar 29 00:07 git1.txt~
drwxr-xr-x 2 fred automation 4096 Mar 27 23:44 includes
-rw-r--r-- 1 fred automation 2208 Mar 26 14:36 index.php
-rw-r--r-- 1 fred automation 4 Mar 28 00:23 readme.txt
-rw-r--r-- 1 fred automation 0 Mar 28 00:23 readme.txt~
-rwxr-xr-x 1 fred automation 896 Mar 25 21:49 style.css
$ git add index.php
$ git status
# On branch master
#
# Initial commit
#
# Changes to be committed:
# (use "git rm --cached <file>..." to unstage)
#
# new file: index.php
#
# Untracked files:
# (use "git add <file>..." to include in what will be committed)
#
# git1.txt
# git1.txt~
# includes/
# readme.txt
# readme.txt~
# style.css
$ git add includes
$ git status
# On branch master
#
# Initial commit
#
# Changes to be committed:
# (use "git rm --cached <file>..." to unstage)
#
# new file: includes/footer.php
# new file: includes/header.php
# new file: includes/nav.php
# new file: includes/sidebar.php
# new file: index.php
#
# Untracked files:
# (use "git add <file>..." to include in what will be committed)
#
# git1.txt
# git1.txt~
# readme.txt
# readme.txt~
# style.css
$
Outstanding! so boom, all the files in includes are "gotten." I'm not
sure whether Torvalds intended a double-entendre with "git," but for
Amis it's a verb, rendered in the imperative, which also seems apropos.
To my thinking, this is all I need to have backed-up in this grandiose
project so far, so now I'd like to get back to design considerations.
Do I really want to have only one .css file for the whole site?
--
Cal
|
|
|