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 trialMary Fernandez
510 PointsUnclear about where to upload changes to GitHub
Whenever I want to upload changes to my jekyll blog (such as publishing or editing a post, adding pages, etc.), do I always push them to master or do I push to the gh-pages branch?
1 Answer
Alexander Revell
5,782 PointsGenerally for proper git flow it's a good idea to:
pull from master into your branch on your local machine (this checks for changes on master since you last committed your branch), then
push your local branch to github (normally called origin branch-name) then
make a pull request into master from github.
But if it's just you doing the editing and you're confident about the changes you're making then you can push straight to master. Most likely you'll be displaying what's in master on your blog, not on any other branch, so it's what's in master that gets seen.
But I haven't used jekyll so there may be some differences that I'm not treating correctly. I hope some of this is useful
Mary Fernandez
510 PointsMary Fernandez
510 PointsThanks a ton!!