Q . Git - how to delete file from local and remote both.

sajeera kt. asked, Jun 27 ' 2016

How can I delete file from remote git repository? I have a file that is just deleted from working copy local repository, and I want delete it from corresponding remote tracking repository.

  • git
  • git-delete

1 Answers

If you deleted a file from the working tree, then commit the deletion:

git commit -a -m "A file was deleted"

And push your commit upstream:

git push

Leave a Ansewer