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
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Rachael Hu
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
Show 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
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
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