Questions d'entretien

Entretien pour Software Engineer (Infrastructure)



If a large sequence of commits are in the main (master) branch of a git repository and only a subset are desired for a new branch, how would you create that new branch?


Réponses aux questions d'entretien

2 réponse(s)


One could create the branch and then do a virtual octopus merge of the various change logs from the master branch that are desired, or use patch mode to iteratively extract and apply each commit from the master branch into the new branch.

Utilisateur anonyme le


Git Cherry-pick or rebase might do the same as well

Ahmed le

Ajouter des réponses ou des commentaires

Pour commenter ceci, connectez-vous ou inscrivez-vous.