将sql脚本签入VSTS / GIT [英] To check in sql script into VSTS/GIT
问题描述
我在SQL管理工作室中使用generate scripts选项创建了多个存储过程的sql脚本。
现在我需要检查脚本GIT / VSTS。
我该怎么做?
谢谢
您好Gree15,
感谢您在此发帖。
没有"办理登机手续"在Git中,您需要"提交"首先对本地存储库进行更改,然后将更改推送到远程存储库,如下所示:
1.将您的sql脚本添加(复制或移动)到本地存储库的路径。
2.然后点击"更改"在团队资源管理器中,您会发现该文件夹显示在窗口中。您需要输入提交消息,然后点击"全部提交"
3.最后,点击"同步 "在团队资源管理器中,然后点击"同步"按钮或者"推送"将更改推送到远程存储库。
有关详细信息,您可以参考我回答的以下主题:
< a href ="https://social.msdn.microsoft.com/Forums/vstudio/en-US/e3a25ef2-9ffd-4cfc-8e50-c055d67a31d9/git-vs-tfvc?forum=tfsversioncontrol#9010799f-4109-4b16- A224-aae4fe8efd38\" > https://social.msdn.microsoft.com/Forums/vstudio/en-US/e3a25ef2-9ffd-4cfc-8e50-c055d67a31d9/git-vs-tfvc?forum=tfsversioncontrol#9010799f-4109-4b16 -a224-aae4fe8efd38
最好的问候
Limitxiao Gao
Hi,
I have created a sql script of multiple stored procs in SQL management studio using generate scripts option.
Now I need to check in the script GIT/VSTS.
How do I do that?
Thanks
Hi Gree15,
Thank you for posting here.
There is no "Check-in" in Git, you need to "commit in" the changes to your local repository first, then push the changes to the remote repository, like the following steps:1.Add(Copy or move) your sql script to the path of your local repository.
2.Then click "Changes" in Team Explorer, you will find that the folder show in the Window. You need to enter in a commit message, then click "Commit All"
3.Finally, Click "Sync" in Team Explorer, then click "Sync" or "Push" to push the changes to remote repository.
For detailed information, you could refer to the following thread answered by me:
Best Regards
Limitxiao Gao
这篇关于将sql脚本签入VSTS / GIT的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!