DEV Community

Discussion on: 11 Painful Git Interview Questions You Will Cry On

Collapse
 
giacomosorbi profile image
Giacomo Sorbi

If you have any doubt, use merge.

I disagree: if you are in doubt, I would rather advise to learn how to rebase.

Also, for point 10, I would rather recommend git rm --cached, but it might be just me.

I don't think I am such a strong git power users, but no one of this questions seemed that hard to me; I would have expected some more sophisticated uses of this tool, including talking about strategies, rebase interactive, reflog, etc...