The following untracked working tree files would be overwritten by merge, but I don't care

前端 未结 16 1084
挽巷
挽巷 2020-12-02 03:37

On my branch I had some files in .gitignore

On a different branch those files are not.

I want to merge the different branch into mine, and I don\'t care if t

16条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-02 03:51

    Remove all untracked files:

    git clean  -d  -fx .
    

    Caution: this will delete IDE files and any useful files as long as you donot track the files. Use this command with care

提交回复
热议问题