lundi 8 mai 2017

how to delete specific file in bitbucket using git?

I unintentionally push a code with passwords to bit bucket. and i found out that i need to remove this file using below command.

git filter-branch --tree-filter 'git rm -rf app\Http\xxxx.php' 1xeeeee..HEAD

I'm using windows and the repo is in gitbucket.

and i'm trying to execute the command in the windows command propmt and it's displaying error below.

fatal: ambiguous argument 'rm': unknown revision or path not in the working tree.

I think the error is because i'm in the windows and the file is in the bitbucket.

is there any other way to delete a specific file from history in bitbucket?

And also is it possible to do SSH in bitbucket? so i can execute the command there.



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire