Using tfs git, the code will be modified as soon as it is cloned, and it cannot be undone.
某草草
某草草 2017-05-17 10:02:21
0
1
940

Our project uses Team Foundation Server, Git repository, and IDE is VS. But every time I clone the code, nothing is done. There are many modifications in git status, and they can't be undone. It's very annoying. Please give me some advice! ! ! ! ! Thanks! ! !

某草草
某草草

reply all (1)
伊谢尔伦

These modifications may be files automatically generated by the compiler, or the corresponding configuration may be modified based on the local environment to ensure the normal operation of the project.

Solution:
Add the file automatically generated by the IDEIgnore the file, and it will not be added to git version management

If you have set ignored files before, you need to clear the cache and add the ignored files again.

$ git rm -r --cached . //注意这里有个点,清除所有的 $ git add . //注意这里有个点,添加所有的 $ git commit -m "update .gitigonre"
    Latest Downloads
    More>
    Web Effects
    Website Source Code
    Website Materials
    Front End Template
    About us Disclaimer Sitemap
    php.cn:Public welfare online PHP training,Help PHP learners grow quickly!