Difference between revisions of "Git repositories"

From Wiki | LUG@UCLA
Jump to: navigation, search
 
(29 intermediate revisions by 5 users not shown)
Line 1: Line 1:
Git is a free and open source distributed version control system, and our preferred method of sharing source code. LUG@UCLA hosts members' Git repositories at {{SERVER}}/git/. This page provides an overview of the steps necessary to get your project hosted.
+
>>> '''https://linux.ucla.edu/git/''' <<<
  
== Repository setup ==
+
'''Git''' is a free and open source distributed version control system, and LUG@UCLA's preferred method of sharing source code. LUG@UCLA hosts official LUG software projects at the address above. If you are working on a LUG related project, see how to [[Creating a LUG repo|create a LUG repository]].
  
If you don't already have an SSH key pair, you can follow [[Secure Shell#Using SSH keys | these steps]] to generate one.
+
If you just want to host your personal project, follow our tutorial for setting up Gitweb in your public [[Web Hosting|web space]] (an example of this would be [https://linux.ucla.edu/~sankeytm/gitweb Troy's gitweb]).
 
+
Give your public SSH key to a LUG admin so they can add your key to Gitolite. Also, provide the LUG admin with 1) a repository name, 2) a short description of the repository (no more than ~7 words), and 3) your email address.
+
 
+
== Using the repository ==
+
 
+
First, verify your repository has been created by accessing {{SERVER}}/git/. If your repository name is "my-project", then your push/pull address will be: <code>git@{{SERVERNAME}}:my-project.git</code> . Your repository will also have a public pull-only address at {{SERVER}}/git/my-project.git.
+
 
+
If you have a pre-existing local repository that you just want to push to your new LUG repository, run the following command:
+
 
+
$ cd path/to/existing/my-project
+
$ git push --all git@{{SERVERNAME}}:my-project.git
+
$ git push --tags git@{{SERVERNAME}}:my-project.git
+
 
+
Remember, you can pull the repository from anywhere, but you can only push from your personal computer (or wherever you generated your keys).
+

Latest revision as of 21:59, 9 November 2013

>>> https://linux.ucla.edu/git/ <<<

Git is a free and open source distributed version control system, and LUG@UCLA's preferred method of sharing source code. LUG@UCLA hosts official LUG software projects at the address above. If you are working on a LUG related project, see how to create a LUG repository.

If you just want to host your personal project, follow our tutorial for setting up Gitweb in your public web space (an example of this would be Troy's gitweb).