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
a33acd14
Commit
a33acd14
authored
May 12, 2015
by
Tom Laudeman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
840357a6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
1 deletion
+18
-1
move-repo-to-gitlab.md
move-repo-to-gitlab.md
+18
-1
No files found.
move-repo-to-gitlab.md
View file @
a33acd14
Create an ssh key specifically and only for gitlab, on the local (non-gitlab) machine:
```
ssh-keygen -t rsa -f gitlab
...
...
@@ -17,6 +16,24 @@ 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/
Add the public key gitlab.pub to gitlab:
-
cat ~/.ssh/gitlab.pub
-
(copy the text of the public key into your clipboard)
-
login to gitlab
-
click "Profile settings" (icon of a person, upper right corner)
-
click "SSH Keys" (left side nav bar)
-
click green "Add SSH Key" button (upper right)
-
enter a name for the key, this is human readable, not a file name
-
paste the key into the "key" text box
-
click "Add key"
You can test the function of the new SSH key:
```
> ssh -T git@gitlab.iath.virginia.edu
Welcome to GitLab, Tom Laudeman!
```
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