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 Putting a Project on GitHub

Sahar Nasiri
Sahar Nasiri
7,454 Points

My project can't be seen in Github

I add one of my projects, it is .py file what I get are only .gitattributes and .gitignore! What do I do wrong?

1 Answer

Ryan Ruscett
Ryan Ruscett
23,307 Points

Did you do the following:

  1. You must do "git add (file.py)" - This will add the file to be tracked to the index.
  2. git commit -m="added new file" -- This will commit the changes to the head and enter the commit message.
  3. Then do a git push. This will push your changes up to github.

You can test this with a "git status". It will show any folders not being watched in the directory by displaying them in red. If they are green, they were added, but not committed. If they are committed, than git status would return up to date.

let me know if that is the issue. thanks1

Sahar Nasiri
Sahar Nasiri
7,454 Points

Thanks a lot, but I don't know where should I do all these stuff! Should I write git add somewhere?! Can you insert pictures here for what I need to do?