These are chat archives for codebar/tutorials

5th
Aug 2015
Nicky Chorley
@ndchorley
Aug 05 2015 11:31
thankfully, for me, it's convenient to get to and from GoCardless tonight :D
Carolina Sawney
@assembly21
Aug 05 2015 14:44

Hi: I'm practising with Git. I've just created a new directory and initialised it. When I go to see the git log I see two previous commits from before that shouldn't be there as this new project has a new folder and is different. Here's the log:

'code'
commit 14793660b694ca962f1abdbd244220ddc791fd4d
Author: Carolina Sawney
Date: Wed Aug 5 15:34:01 2015 +0100

Initial commit

commit cecca35707164a77e0134adf20c0804ad8e3bf3c
Author: Carolina Sawney
Date: Thu Jul 23 15:43:22 2015 +0100

Initial commit

commit 8b98f61fc994ac781765e216da51c5ee59c0400e
Author: Carolina Sawney
Date: Wed Jun 17 18:59:02 2015 +0100

first commit

'code'

And I don't get there references on how to add code here. What's the single quote that goes from right to left? And the normal quote doesn't work.

Thanks in advance.

hanster
@hanster
Aug 05 2015 16:17
@assembly21 what is the output when you do a git status
Carolina Sawney
@assembly21
Aug 05 2015 16:18
@hanster it was giving me files up to the whole file structure in my machine.
hanster
@hanster
Aug 05 2015 16:21
@assembly21 is this when you do a git status in the new directory ?
Carolina Sawney
@assembly21
Aug 05 2015 16:22
@hanster yes
@hanster as if there was some left over of another .git tracking thing somewhere. I deleted everything now and started again and it works, but would like to know what it was.
hanster
@hanster
Aug 05 2015 16:23
strange, it could be that you tried to create a git repo within a git repo that was already there
if you're ever in that situation again, this link seems to tell you how to find out what the top level git folder is http://stackoverflow.com/questions/957928/is-there-a-way-to-get-the-git-root-directory-in-one-command
Carolina Sawney
@assembly21
Aug 05 2015 16:26
@hanster that's what I thought, but it wasn't that. I didn't delete anything from somewhere else and the new folder works fine.
Denise Yu
@deniseyu
Aug 05 2015 16:46
@assembly21 in the directory that you want to track, run ls -a and make sure there is a .git. otherwise you forgot to do git init and Git looks up the parent directories to find the first available .git
also make sure you're in the right folder in command line with pwd