0

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??

Amalo
  • 772
  • 3
  • 13
  • 32

2 Answers2

1

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.

enter image description here

Andy Li-MSFT
  • 28,712
  • 2
  • 33
  • 55
  • @Amalo Install [Git bash](https://git-for-windows.github.io/) >> go to the git repository and right-click the project folder >> Git bash here >> Run the command in Git bash – Andy Li-MSFT Sep 18 '17 at 06:33
  • i re-install the Git and start from zero and all is okay but sometimes did't work !! – Amalo Sep 28 '17 at 08:31
0

I uninstall the Git and re install it again also i started from zero to upload the projects and commit works fine

Amalo
  • 772
  • 3
  • 13
  • 32