0

I've forked a remote Git repository, so I get it on my PC.

I've added two folders and two files but Git doens't recognize commit.

I try to launch this command:

git commit -m "my message"

but my folders and files are under section:

"Untracked files".

So, for Git there are nothing to commit.

I've installed Git on Windows 7 and as development environment I use Spring Framework.

1 Answer 1

3

You should git add them first. Or call git commit -a so they get added automatically. You always need to add new files before they are staged and then you can commit.

3
  • Dear, yes! I've jumped git add phases. Thank you very much
    – Joe Taras
    Jan 30, 2016 at 22:30
  • I forgot that quite often as well when I started with git. You get used to it later.
    – AdHominem
    Jan 30, 2016 at 22:31
  • Ok, thanks. I'll accept your answer but I must wait for 10 minutes. Thanks again.
    – Joe Taras
    Jan 30, 2016 at 22:36

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .