cluster:version_control
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
cluster:version_control [2018/10/02 13:42] – created schroeder | cluster:version_control [2024/11/11 20:44] (current) – removed mcloughlin | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ======Version control====== | ||
- | =====Subversion===== | ||
- | One suggestion in [http:// | ||
- | ===Creating a svn repository=== | ||
- | Here is a way to quickly create a repository on the cluster. Create a myproject folder on your computer with three subfolders: trunk/, branches/, tags/. Put all of project content under the trunk/ subfolder. Copy the myproject folder to the cluster. SSH into the cluster, then | ||
- | $ mkdir svn/ (you only have to do this once) | ||
- | $ cd svn/ | ||
- | $ svnadmin create myproject | ||
- | $ svn import ~/myproject file:/// | ||
- | |||
- | You can delete the ~/myproject as all the files have been imported into ~/ | ||
- | |||
- | Then follow the instructions at [[File access]] to give coauthor permission to ~/ | ||
- | |||
- | ===Checking out a working copy=== | ||
- | On your work machine (person computer or could even be the cluster again) you will checkout a copy of the project and begin working. The most popular svn client for windows is [http:// | ||
- | #Create a myproject folder | ||
- | #R-click on the folder and choose SVN checkout | ||
- | #As URL put svn+ssh:// | ||
- | #Make sure TortoiseSVN doesn' | ||
- | |||
- | ===Resources=== | ||
- | * [http:// | ||
- | * [http:// | ||
- | |||
- | ==Git== | ||
- | Git is a distributed version control system, which allows for more flexibility but some more complications. If you have a project that can be completely public you can use the popular [https:// | ||
- | ===Cloning=== | ||
- | If you are on the cluster you can clone someone else's repository | ||
- | git clone file:/// | ||
- | and if you are on another system | ||
- | git clone ssh:// | ||
- | If you are using tortoisegit then you may have to put a colon between the host and the path (.edu:/ | ||
cluster/version_control.1538487775.txt.gz · Last modified: 2018/10/02 13:42 (external edit)