开发者

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

  1. git commit -a to commit all changes to tracked files, including deletions
  2. git push to push the changes to Github
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜