Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

If you do not already have SourceTree you can download it at https://www.sourcetreeapp.com/.

Once you install the SourceTree software log on to UConn’s central Git repository  https://

...

bitbucket.uconn.edu/projects/kfs

Step-by-step guide

Getting Starting with Git and SourceTree

  1. After downloading SourceTree and launching the program, you will be prompted with two options.  Choose to option to connect to BitserverBitbucket Server.
    1. Root is:  https://stashbitbucket.uconn.edu//projects/KFS/repos/dbscripts/browse
    2. Username is your NetID: IE: jtk17003
      1. **If issues or errors are encountered, you may have a bad installation.  Attempt a fresh install.  You may have to manually delete out the dbscripts folder on your local in order to get the Clone mentioned below to work.
  2. Click on the Kuali Financial System link

    There are two repositories allocated for scripts  dbscripts-test for non-production environments and dbscripts for production.   Click on the link for the appropriate environment.


    Which will bring to the next page...

  3. Click on the Clone link under the ACTIONS heading on the left side of the page this will display a dialog box with a “Clone In SourceTree” option.  This is a one time procedure that will create a local copy of the repository and link it to the main dbscripts repository.

    Click on the Clone In SourceTree button it will let you specify where your local repository will be located. When you decide click Clone. This will clone the repository and open SourceTree on your workstation.   . **NOTE**, OneDrive does not seem to work with SourceTree.  Choose a Non-OneDrive folder.  The path for the test repository will be /my-directory/git-repository/dbscripts-test
     

  4. In SourceTree click on the Branch icon on the menu bar, you will create a new branch for every JIRA ticket is linked to a sql script.


    1. In the New Branch area enter the name of your branch (please include the JIRA ticket number in the name) and click Create Branch.  The branch name will appear under the Branches heading on the left.


    2. Double click on the branch name.  This is now your working branch you will create all your scripts here.  Please note that the branch will not be noticeable in the directory structure, Git keeps track where you are working and keeps your branch isolated from the master repository.

...