¿Fue útil?

Solución 2

Lo tengo:

git tag originalHead # just in case
git rebase -i <id of the parent of the commit that deleted the file>
# change pick to edit for that commit
git checkout <id of the previous commit> <filename> # thanks for reminding, kubi
git commit --amend
git rebase --continue
git tag -d originalHead

editar lamentablemente esto dejará todas las etiquetas en la antigua línea de tiempo, ver aquí

Otros consejos

git checkout <commit> <filename>
Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top