简体   繁体   中英

when adding a new file to a project in VS2013, it changes to a locked state instead of add

Using VS2013, and git via Visual Studio Team Services (previously Visual Studio Online), I add a new js file to the project. The file appears in Source Explorer as expected with the green 'plus' icon. However, after about 1/2 second or so, it changes to the locked icon. Hovering over it gives the status of "checked in". In the Team Explorer tab, the file does not appear in the Included Changes section. It is not in the Excluded Changes or the Untracked Files sections either. Bringing up a git bash does not show the file either. This makes sense since the file is in a checked state - but it doesn't make sense why the file changes from the 'add' status to 'checked in'. I tried deleting the repository and re-cloning from VSO. This is a new situation as I have been able to add files in the past - just recently. Not sure what to make of it.

原来gitignore文件有一个被忽略的文件夹,该文件夹给我带来了问题。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM