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

Development Tools

Albert González
Albert González
22,953 Points

Delete two commits from master branch in GIT

Hi,

I'm studing the possibility to implant GIT in my company. I want to explain a case that I can't resolve. I have 5 commits in my master branch and already uploaded to my repository:

  1. Commit change 5 (last commit)
  2. Commit change 4
  3. Commit change 3
  4. Commit change 2
  5. Commit change 1

How can I remove the 3 and 4 change? What is the way? Thank you very much.