简体   繁体   中英

android studio commit changes on Team services/tfs

I am using Team foundation services to upload android studio projects on TFS server I the project is added successfully to server using VSC -> Import into version control -> Import into Team services git

But when i tried to change any code in the activity and click VSC -> Commit changes a pop up message return no changes detected why??

Please try below items to narrow down the issue:

  • Try to run command $ git status (You need to install Git bash to run the command under the repo) to check if there are any error messages there. If get the error like this : bad index file sha1 signature, fatal: index file corrupt . Just try to delete the index file, then reset with below command (Reference this thread : How to resolve "Error: bad index – Fatal: index file corrupt" when using Git ):

    del .git\\index git reset

    To run the command : Install Git bash >> go to the git repository and right-click the project folder >> Git bash here >> Run the command in Git bash.

  • Go to the file you have changed and Right Click > Synchronize , then it will check against the last one manually. The commit again.

For Android studio with Git, you can reference Version Control System using Git on Android Studio .

在此处输入图片说明

我卸载了Git并再次重新安装它,我也从零开始上传项目并提交工作正常

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