SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


GIT repository with RedGate SQL Source Control


GIT repository with RedGate SQL Source Control

Author
Message
whoamisoon
whoamisoon
SSC-Enthusiastic
SSC-Enthusiastic (147 reputation)SSC-Enthusiastic (147 reputation)SSC-Enthusiastic (147 reputation)SSC-Enthusiastic (147 reputation)SSC-Enthusiastic (147 reputation)SSC-Enthusiastic (147 reputation)SSC-Enthusiastic (147 reputation)SSC-Enthusiastic (147 reputation)

Group: General Forum Members
Points: 147 Visits: 4
I am trying to setup RedGate SQL Source Control with GIT repository. I came across this article and have a couple of questions:

1) under GIT Setup heading:
it says to input "git init" command. Will I need to install anything on my desktop to use that command?

2) the article initialize under c:\ local drive. Can it be initialize under UNC path (\\some server\some folder)? If not, will mapped drive work?

3) IF I have multiple servers with multiple databases, how exactly will I create the local repository? Will the init be executed as follows:
a) c:\mssql\server1\db1>git init
b) c:\mssql\server1\db2>git init
c) c:\mssql\server2\db1>git init
d) c:\mssql\server3\db3>git init
... so on
Steve Jones
Steve Jones
SSC Guru
SSC Guru (602K reputation)SSC Guru (602K reputation)SSC Guru (602K reputation)SSC Guru (602K reputation)SSC Guru (602K reputation)SSC Guru (602K reputation)SSC Guru (602K reputation)SSC Guru (602K reputation)

Group: Administrators
Points: 602352 Visits: 21101
1. Yes, you need git installed. You can install any version. I've used TFS Git, but installed from the open source git repo.

2. Any path will work. This just needs to be a place that your system accesses. Note, this should not be a shared folder with other developers. Your commits should be your commits. That's the idea of git. Each developer has their own repo and commits, then pushes to a remote. Everyone pulls from a remote.

If you are trying to work from multiple machines, just git init a folder from each one. No reason to have a shared folder.

3. Yes, each repo is for a database. I typically use a subfolder, because I may create some test scripts, inits, data scripts, etc that I want to put in the VCS. So I'd have:

c:\git\db1 - git init here.
c:\git\db1\DDL - link SQL Source Control here.


If you have more questions, ask.

Follow me on Twitter: @way0utwest
Forum Etiquette: How to post data/code on a forum to get the best help
My Blog: www.voiceofthedba.com
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum








































































































































































SQLServerCentral


Search