Here, I am explaining how to add your solution to non TFS sources like GIT, STASH & Bitbucket
Step1: Open Visual studio
Step2: Click Team Explorer
Stp3: Click ‘Manage Connections’
Step4: Click New under Local Git Repositories
Step5: Add path where you want to create repository in local machine and click ‘Create’
Step6: Double click on newly created repository and choose ‘Settings’
Step7: Click ‘Repository Settings’
Step8: Enter user name and email address and click ‘Update’
Step8: Click add under ‘Remotes’
Step9: Add name
Step10: Add the URL of the GIT/STASH/BitBucket url under ‘Fetch’
Step11: Check ‘Push matches fetch’ and Save.
Step12: Go back to solution and right click and choose ‘Add Solution to Source Control’
Step13: Once done, go back to team explorer and click Sync to save changes to repository.