Git: Difference between revisions

Jump to navigation Jump to search
1,423 bytes added ,  19 March 2011
no edit summary
No edit summary
No edit summary
Line 5: Line 5:
== Getting a git repository on Redbrick ==
== Getting a git repository on Redbrick ==


Redbrick hosts git repositories for users. You (and any other users you want) can have write access to the repository. The world has read-only access via the web interface at http://git.redbrick.dcu.ie (although I'm not sure that they can actually pull from there - the system is still a bit of a work in progress), so don't use this to host any code you don't want the world to see. It's perfect for any small open source projects you feel like starting though, or if you want to branch/fork an existing open source project that's hosted on git.
=== Can I have a private repository that the world can't see? ===
Not on git.redbrick.dcu.ie. You could create one in your own home directory if you wanted to do this, but you'll need to figure out how to do it yourself :)
=== Can I use this to host my third year/fourth year/other important college project? ===
Short answer: No. And you shouldn't do this in your redbrick home directory either. There have been a number of times in the past where Redbrick has experienced problems meaning that a user who had the only copy (or the only backup copy) of a project weren't able to access it at some important deadline.
Long answer: If you have other copies of your code, and Redbrick isn't the primary (only) backup of it, and you just wanted to have yet another backup of it "just because", then ''maybe'' it might make sense to put it on redbrick. But I still wouldn't.
=== Creating an SSH key pair ===
=== Creating an SSH key pair ===
Before you can use redbrick's git repositories from one of your computers (or from your redbrick shell), you need to create a public/private SSH keypair there if you haven't already. You'll need to do this for every device/place that you want to access git from. This might sound annoying, but it also lets you use git without having to type a password every time you need to clone/push/pull.
Before you can use redbrick's git repositories from one of your computers (or from your redbrick shell), you need to create a public/private SSH keypair there if you haven't already. You'll need to do this for every device/place that you want to access git from. This might sound annoying, but it also lets you use git without having to type a password every time you need to clone/push/pull.

Navigation menu