Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Documentation
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
2
Issues
2
List
Board
Labels
Milestones
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
snac
Documentation
Commits
840357a6
Commit
840357a6
authored
May 12, 2015
by
Tom Laudeman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add ssh key info
parent
bcc4022d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
0 deletions
+20
-0
move-repo-to-gitlab.md
move-repo-to-gitlab.md
+20
-0
No files found.
move-repo-to-gitlab.md
View file @
840357a6
Create an ssh key specifically and only for gitlab, on the local (non-gitlab) machine:
```
ssh-keygen -t rsa -f gitlab
```
Add a stanza for gitlab to your ~/.ssh/config file:
```
Host gitlab gitlab.iath.virginia.edu
user git
Hostname gitlab.iath.virginia.edu
IdentityFile ~/.ssh/gitlab
EscapeChar none
```
Note that the key file name in the -f arg is "gitlab" which matches the IdentityFile line in the config file.
The default ssh-keygen directory is ~/.ssh/
Create the repo on gitlab. (log in, create it in either your space or snac's space, and then copy the URL for
cloning via ssh
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment