The reason is that you just connect to the local git repository and it likes this:
You configured Remotes (Home=>Settings=>Repository Settings=>Remotes), so you can commit and sync.
Refer to these steps to connect to the remote repository.
- Go to Team Explorer
- Click Manage connections=>Connect to Team project
- After that Open Solution in Solutions section (if it is empty, you need to clone this repository)