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 trial

Ruby

chris salvi
chris salvi
7,584 Points

I've been following the upgrade rails application workshop and cant push my commits through git after making a branch!

Im not sure whats going on, but I have made multiple commits after my branch was created to indicate a new version of rails as the video instructs, but github will not log my progress as previously done.

chris salvi
chris salvi
7,584 Points

nevermind I figured it out I needed to merge the branch to the master

1 Answer

Brandon Barrette
Brandon Barrette
20,485 Points

For future reference. Your master branch is where the final code would go, usually you use this:

git push origin master

For a branch called sample, you would push your code like this:

git push origin sample

This way, until you are ready to merge the changes in sample to your master branch, you can push your code and be ok.

Some good reading: http://git-scm.com/book/en/Git-Branching