Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialSahar Nasiri
7,454 PointsMy 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
23,309 PointsDid you do the following:
- You must do "git add (file.py)" - This will add the file to be tracked to the index.
- git commit -m="added new file" -- This will commit the changes to the head and enter the commit message.
- 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
7,454 PointsSahar Nasiri
7,454 PointsThanks 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?