How to delete all files from repo that doesn't exist on my computer?
I'm new to Git (GitHub for me) and I hope that you could help me.
I work on one project and I often change names of files. Situation is that on my computer I have all files as I want, but in GitHub - all files: 开发者_如何转开发those I need and those I deleted (renamed files).
is there any way to automatically delete files that doesn't exist on my machine also from GitHub?
You need to create a commit that deletes the files to your local repository and the push that commit to Github. To do that, do
git commit -a
to commit all changes to tracked files, including deletionsgit push
to push the changes to Github
精彩评论