Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Git add not adding files

when I try to git add my files, I typed

git add <insert file names here>

That works correctly. However, when I try to do

git commit -a

My git repository tells me that it's empty. What is outputted is:

# On branch master
# Untracked files:
#   (use "git add <file>..." to include in what will be committed) 
#
<insert name of files here>

nothing added to commit but untracked files present (use "git add" to track)

Might anyone know the solution to this? Thanks.

like image 981
user200081 Avatar asked Nov 12 '12 06:11

user200081


1 Answers

And you may also want to make sure you're in the root of your project. I had that problem for a while on a Rails project a while back & then realized I was in the /config directory. Whoops! #noobmistake

like image 157
Kyle Carlson Avatar answered Sep 17 '22 10:09

Kyle Carlson