🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← Quiz: GitHub: all 10 questions

Quiz: GitHub · Question 5 of 10

Why is git push --force dangerous on a shared branch?

Why is git push --force dangerous on a shared branch?

  1. A.It's slow
  2. B.It can overwrite commits that teammates already pushed
  3. C.It deletes your local repository
  4. D.It creates a new branch
Answer & explanation

Correct answer: It can overwrite commits that teammates already pushed

Force-pushing replaces remote history with yours.

Can you get the rest right without peeking?

Take the timed Quiz: GitHub quiz free. Pass it to earn XP and count towards your certificate.

Start the quiz →