Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 15 Next »

This article helps you to work with a SourceTree program: Clone Repository, Fetch, Pull and Archive.

In the basis of this article lies concept of using GIT repository for development: dedicated server stores repository and project team downloads/uploads changes from/to it. SourceTree is just a program that helps to work with mentioned repository.

Prerequisites

How to get the project code on your machine

  1. Please log into services.burti.lv/stash:
        

  2. Choose a project from the project list.
    You will be able to see only the projects you have access to:
        

     

  3. Please choose a Repository:
        


  4. On the left side under Actions, please click Clone button to clone repository to your computer. 
    Please note that under the "Source" label there is a dropdown, where you can select the branch you would like to clone. 
    Please go though manual Usage of Git master and develop branches in code deployment to get overall understanding about branch concept. 

        

    Please note that stash will show you all files that repository has. Usually it will just "halcust" folder.


  5. A window with project file and a button Clone in SourceTree will appear. Click on Clone in SourceTree.
        

  6. If Browser asks for permission to launch your SourceTree client, please Click on Launch Application.
    If you don't want to see this window again you can mark Remember my choice for all links of this type.
        

  7. Then a window will open where to choose Checkout branch (see the point 4.), Destination Path (specify location where local files from repository will be stored), Bookmark Name (local name for repository: since there can be several projects you are working on, please choose convenient name for this repository). Then click on Clone.
        

     

  8. Please go to the destination path you have selected in the previous step. You may already copy files to the server directory and see the code working on your computer.

    Please note that after running SourceTree program you may select repositories with bookmark names from step 7.

        

    [-] Please use double-click to change branches

    [-] Please use "Fetch" to refresh repository status (this will not update files on local machine)

             
            Usually first checkbox is selected, which means update the status of whole repository.

    [-] Use the "Pull" button to get files be downloaded from repository to the local destination (selected in the step 7)
             
            Please use 2 first checkboxes when Pulling changes from repository. 

    Creating an archive

    In the case when you need to create an archive of repository to be send to another party, please do the following:
     - Please open the SourceTree program
     - Select needed repository which needs to be archived
     - In top menu select "Repository > Archive..."

            

     - Press the "..." button and please select location and the name of the archive.
            
     - You can find the repository's archive under location you have been specified.
  • No labels