S

Satya • 2.41K Points
Master

Q. How do you squash multiple commits into one in Git?

  • (A) git compress
  • (B) git squash
  • (C) git rebase -i
  • (D) git merge --squash
  • Correct Answer - Option(C)
  • Views: 11
  • Filed under category GitHub
  • Hashtags:

Explanation by: Satya
You can squash commits during an interactive rebase using 'git rebase -i'.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.