How to make quick backup of untracked files which I want to delete by git clean?

后端 未结 3 688
醉梦人生
醉梦人生 2020-12-24 00:30

I have a lot of untracked files. I am pretty sure that most of them I can delete, however... you know, backup could be helpful ;)

What you are doing in similar situa

3条回答
  •  执念已碎
    2020-12-24 01:03

    Generally if they are ever going to be useful, then you should be checking them in! If you don't need them right now, then check them in and remove them! IE, track them as deleted files. That way you can always recover them later if you decide you do need them.

    Remember, a fundamental rule of using a version control system is "track everything". Small changes, broken changes (in a branch), etc. You never know when you might need those files or changes again, so use your VC system to make sure you can't lose them.

提交回复
热议问题