Git


Git Repository Access

Every user is given the option to add public keys to the authorised users list to access their git repositories, and also access the main Teknik repositories.

To add a public key, just login, click your username on the top navbar and click 'Profile'. This will bring you to your profile page where you can add your public key or edit your existing one.

Public Key Format

The Public Key must be in the following format: ssh-rsa [0-9A-Za-z/+]

Creating a Git Repository

Once you have a public key added, you will have the ability to create a repo. To do so, you just need to clone the repo you want to create, and the repo will be created.

~$git clone git@teknik.io:u/[username]/[repository_name]

Viewing a user's git repositories

You can also view a list of the git repo's a user has by visiting: /u/[username]/

More Information

For more information on the commands available to you, just type: `~$ssh git@teknik.io help`

Examples

Clone a Repo (Git Daemon): ~$git clone git://teknik.io/u/[username]/[repository_name]
Clone a Repo (SSH): ~$git clone git@teknik.io:u/[username]/[repository_name]