Push a rebased feature branch safely
QuizMedium-HardAsked in: Accenture, Capgemini, TCS
You rebased your own feature branch, which you had already pushed. A normal push is rejected. Which push is the safest choice?
- git push --force-with-lease
- git push --force
- git push --rebase
- Delete the remote branch and push again
This question is part of Pro+
Pro+ opens every question in Interview Prep and the mock interview. Every article and the first 2 questions of each topic stay free. Hands-on Selenium and API tasks follow their course lesson's own lock.