Sharanya K M
Sharanya K M

Reputation: 1805

GitHub not adding files

I wanted to add an Xcode project to an existing repository using the following:

 cd Test
 git add .
 git commit -m 'Adding initial files.'
 git push -u origin master

But in the repository I get a green arrow on the folder I just added, and I'm not sure why that is happening.

This is what I'm getting like on the folder

EDIT: Why does this kind of symbol occur usually? any idea??

EDIT 2: git status says unable to create c:/.../.../.../index.lock : File exists

Upvotes: 2

Views: 1656

Answers (3)

Sharanya K M
Sharanya K M

Reputation: 1805

Thanks guys. Although I still dont know what was the problem. I did it all a fresh. Created another repo and added these files again. It worked..!!

Thanks for the help

Upvotes: 0

Tamara Wijsman
Tamara Wijsman

Reputation: 12348

git status should tell you whether there are uncommitted commits left.

Please note that git add . does not add deletes to the commit. Use git add -A instead...

Upvotes: 1

Synesso
Synesso

Reputation: 38978

Do you have any files, or just the folder? Git will not add an empty folder.

Upvotes: 3

Related Questions