Accessing Source Version Control Repositories

This document briefly describes how to access a repository.

Accessing

Repositories can be accessed by clients via https:// urls as shown below. Some of them can also be viewed using a browser and the native repository display tools. To illustrate the service we provide a couple of example repositories. They are currently restricted to UW networks and CAE accounts.

  • SVN/Subversion:
    SVN urls take the form of:
    # svn checkout https://subversion.cae.wisc.edu/svn/EXAMPLE_SVN_PROJECT

    Here's a full svn transaction example:
    # svn checkout https://subversion.cae.wisc.edu/svn/EXAMPLE_SVN_PROJECT
    # cd EXAMPLE_SVN_PROJECT
    # echo "example text" >> example.txt
    # svn add example.txt
    # svn commit -m "adding example file to the repository" example.txt
    	
  • GIT:
    GIT urls take the form of:
    # git clone https://git.cae.wisc.edu/git/EXAMPLE_GIT_PROJECT
    (Note that we also provide a browser accessible interface for you to see your git repo at the same url)

    Publicly available repositories can be listed here:
    https://git.cae.wisc.edu/git/
    Be sure to set your git client's user.email setting to something like your-cae-username@cae.wisc.edu so that push operations can be authenticated and emails forwarded properly.
    For example:
    # git config user.email your-username@cae.wisc.edu

    Here's a full git transaction example:
    # git clone https://git.cae.wisc.edu/git/EXAMPLE_GIT_PROJECT
    # cd EXAMPLE_GIT_PROJECT
    # echo "example text" >> example.txt
    # git add example.txt
    # git commit -m "adding example file to the repository" example.txt
    # git push origin master
    	

    NOTE: CAE does not support files larger than 100MB in repositories. You may experience problems, such as errors like the following reported:

    fatal: The remote end hung up unexpectedly
    fatal: protocol error: bad pack header
    error: RPC failed; result=18, HTTP code = 200
    
    If you do, you can try adding the following to your .git/config:
    [core]
        packedGitLimit = 2G
        packedGitWindowSize = 1G
        bigFileThreshold = 50M
    [pack]
        threads = 1
        windowMemory = 2G
    

Please note that all access to these repositories is accomplished via https:// URLs - no direct filesystem access is provided, though we can assist in importing legacy repositories if necessary. For more details on accessing the individual repositories via https:// please see the individual repository's documentation links listed above.

Authentication

By default, all authentication uses your CAE account credentials (we can make accounts for outside parties if need be). However, some clients, such as svn, default to storing your repository passwords in clear text. Since this isn't secure, we also provide the option for each account to have a different password for each repository.

See Also:




Keywords:access accessing auth authn authentication my repo repository git svn subversion example   Doc ID:22527
Owner:Brian W.Group:Computer-Aided Engineering
Created:2012-02-02 15:13 CSTUpdated:2019-08-22 08:34 CST
Sites:Computer-Aided Engineering
Feedback:  0   0