Sto provando a rimuovere un file con dati sensibili utilizzando this GitHub procedure.rimozione file dalla cronologia git non funziona
Tuttavia, questo non funziona per il mio repository specifico. Quando eseguo:
git filter-branch --index-filter 'git rm --cached --ignore-unmatch some_file.json' \
--prune-empty --tag-name-filter cat -- --all
Completa con:
Rewrite 73f9cce9ab282cec272022314f361c1cd48955a7 (418/418)
WARNING: Ref 'refs/heads/master' is unchanged
WARNING: Ref 'refs/remotes/origin/blah' is unchanged
WARNING: Ref 'refs/remotes/origin/blah2' is unchanged
WARNING: Ref 'refs/remotes/origin/blah3' is unchanged
WARNING: Ref 'refs/remotes/origin/blah4' is unchanged
WARNING: Ref 'refs/remotes/origin/master' is unchanged
Ma non è cambiato nulla. Quando faccio
git push origin master --force
si dice
Tutto up-to-date
Qualcuno sa che cosa sto facendo male?
Dispari. E il file ha sicuramente una storia? Suppongo anche che 'some_file.json' sia il suo percorso completo? – Christopher
Ok, sì, sono zoppo. Non stavo usando il percorso completo. Immagino sia necessario. Grazie! – przygode
Infatti. Per quanto riguarda git, il nome del file include il suo percorso completo, altrimenti non c'è differenza tra './Some_file.json' e'./Path/here/some_file.json'. – Christopher