Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

Development Tools Git Basics Getting Started With Git Committing Changes

Tracy Excell
seal-mask
.a{fill-rule:evenodd;}techdegree seal-36
Tracy Excell
Front End Web Development Techdegree Graduate 15,333 Points

Git Bash error, help understanding what is going wrong

Hello,

I am working through the Git track and am trying to add a repository and README file on a windows PC. I am getting this error and am not sure what is going wrong.

````Initial commit

    Untracked files:
    README.txt

   nothing added to commit but untracked files present

  tracyandgrant@DESKTOP-0EUKSQJ MINGW64 ~/project-1 (master)
  $ notepad README

tracyandgrant@DESKTOP-0EUKSQJ MINGW64 ~/project-1 (master)
$ git commit -a -m "added information to practice"
On branch master

Initial commit

  Untracked files:
    README.txt

  nothing added to commit but untracked files present

  tracyandgrant@DESKTOP-0EUKSQJ MINGW64 ~/project-1 (master)
   $

If you know what I am doing wrong, your help would be appreciated.

1 Answer

Jennifer Nordell
seal-mask
STAFF
.a{fill-rule:evenodd;}techdegree
Jennifer Nordell
Treehouse Teacher

Hi there! It looks like you haven't added the files to the staging area yet. You have changes, but until you add them to the "staging area" you will be unable to commit them. Try this first: git add . Note the period/full stop one space away from "add". This denotes that all files in the current directory will be added to the staging area. Then try your git commit.

Hope this helps! :sparkles: