Reputation: 1805
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.
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
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
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
Reputation: 38978
Do you have any files, or just the folder? Git will not add an empty folder.
Upvotes: 3