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

前端 未结 16 1127
挽巷
挽巷 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:54

    One way to do this is by stashing you local changes and pulling from the remote repo. In this way, you will not lose your local files as the files will go to the stash.

    git add -A
    git stash
    git pull
    

    You can check your local stashed files using this command - git stash list

提交回复
热议问题