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 trialKevin Dunn
6,623 PointsCan not push data to Github repository
Hi,
I am very new to Github and I want to host my website on Github. I am using Windows PowerShell when pushing data to Github. I managed to push my website to github's gh-pages branch. But now when I try to make some changes on my index.html file and write the command git status, it tells me that everything is up to date, even though that is not true since I just modified the index.html file.
So basically I am not able to push anything new to the repository because it is telling me that everything is up to date.
What could I be doing wrong....?
Thanks
2 Answers
Russell Sawyer
Front End Web Development Techdegree Student 15,705 PointsFirst off you need to make sure your index.html file is in the same folder you created the git repository on your hard drive. Also, unless you just want practice running the git commands you can download github desktop which does all that for you and is super easy.
Karolin Rafalski
11,368 PointsI had a problem similar to this a while back. The issue I had when I was trying to push to gh-pages was that I had a merge conflict, but I didn't know that I had one because I never got an error message. It just would say everything is up to date and my page would not update.
You can try to make manual changes on your github page on the gh-pages branch- if those work, then it is likely your push has some sort of error. I think I ended up deleting my gh-pages branch and then recreating it by pushing my master to a newly recreated gh-pages branch.
Good luck!