SQL Source Control, GIT and Visual Studio Online
HWinkler
Posts: 4 Bronze 1
Is there a step by step document that walks through how to set up SQL Source Control with GIT and then push to Visual Studio Online? I have GIT configured to synch with Visual Studio Online. That works just fine from the file system using the Tortoise GIT client. I have SQL Source Control configured to use GIT, and that seems to work fine as well. I get a message in SQL Source Control that I need to push the change, but then I get a Source Control Credentials required dialog box. I put in my VSO credentials, but it never authenticates. Again, I can push to VSO from the file system using the Tortoise GIT client.
Versions:
SQL Source Control: 5.7.6.6321
GIT: 2.14.1
Tortoise GIT: 2.5.0.0
Thanks
Henry Winkler
Versions:
SQL Source Control: 5.7.6.6321
GIT: 2.14.1
Tortoise GIT: 2.5.0.0
Thanks
Henry Winkler
Tagged:
Answers
> git push
I know.
DevOps Mentor and Coach
Director of DLM Consultants
Creator of Speaking Mentors
Microsoft Data Platform MVP
Friend of Redgate
Twitter / LinkedIn
I'm assuming your "I know" comment was intended to head off any screams of disbelief/frustration.
Can you please try:
1- create a Personal access token https://docs.microsoft.com/en-us/vsts/accounts/use-personal-access-tokens-to-authenticate
2- clone the repository to your PC (manual clone or via VS)
2- Click the database, go to Set up in SQL Source Control --Link to my source control system -- Git, paste the path of the local repository that you've cloned.
3- Click 'Link', and choose access token and put in your Personal access token.
SQL Source Control will remember the token so you don't need to re-enter it in the case of relinking.
I hope this helps. Please let me know if you need more information.
Thanks.
Tianjiao Li | Redgate Software
Have you visited our Help Center?
Sorry I should have been more clearer. You won't be prompted Access Token request until you try to Push or Pull from remote.
For example:
After click Continue, you'll need to use Access token to complete the Push.
Tianjiao Li | Redgate Software
Have you visited our Help Center?
....Update - looks like I am doing something dumb. Though it would be MEGA helpful if SQL Source Control gave you the FULL error message & not just a simple 403.
Redgate Software
Hi Mike, yes, I've been able to push successfully using the command line.
Redgate Software