Rodrigo Souza
Rodrigo Souza

Reputation: 7332

Removing files in GIT

How do I remove files in the remote repository?

Upvotes: 0

Views: 117

Answers (2)

kaichen
kaichen

Reputation: 177

I think you can try this git filter-branch command to rewrite remote origin branch. So that delete those files you wanna clean in all commits.

http://git-scm.com/docs/git-filter-branch

Upvotes: 0

shingara
shingara

Reputation: 46914

Remove file from repository and filesystem

git rm my_path/my_file

Force removing file

git rm --force my_path/my_file

Remove file only from your repository not in your file system

git rm --cached my_path/my_file

Upvotes: 3

Related Questions