How to make change to .gitattributes take effect

后端 未结 3 1777
挽巷
挽巷 2020-12-31 04:43

I\'m working on a project where we have recently started using git. The setup was not perfect from start, so I\'ve set up .gitattributes after people started cloning/working

3条回答
  •  既然无缘
    2020-12-31 05:11

    osse on irc://chat.freenode.net/#git gave me this method, and it works reasonably well:

    git rm -r :/ && git checkout HEAD -- :/
    

    This will complain if you have uncommitted changes in your tree.

    Seems like there should be a better way though.

提交回复
热议问题