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 trialammarkhan
Front End Web Development Techdegree Student 21,661 PointsRebase git branch
While i was doing Git tut, i realised after running into it that i was commiting into a wrong branch, now i want to copy that to the other branch, and i googled and found rebase. But not understand how to do it? I have 2 branches, ---ammar ---xyz
Now xyz has latest commit which i want to copy them to "ammar" branch.
Mayur Pande
Courses Plus Student 11,711 PointsMayur Pande
Courses Plus Student 11,711 PointsHow many commits have you done? To undo the last git commit you can use
git reset --soft HEAD~