-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathGithub_SSH_Setup
40 lines (23 loc) · 1023 Bytes
/
Github_SSH_Setup
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
On Ubuntu CLI:
FIRST: Run the following command to see if existing SSH keys are present:
ls -al ~/.ssh
1. ssh-keygen -t ed25519 -C "[email protected]"
2. eval "$(ssh-agent -s)"
3. ssh-add ~/.ssh/id_ed25519
4. cat ~/.ssh/id_ed25519.pub | xclip -selection clipboard
( If xclip isn't installed (common in some Linux distributions), you may need to install it or simply open the file and copy its contents manually.
Go to GitHub and navigate to your account settings.
Click on "SSH and GPG keys" in the sidebar, then click on the "New SSH key" button.
Paste your key into the "Key" field and add a descriptive title.
Click "Add SSH key." )
5. ssh -T [email protected]
Then to clone a (private) repo to your CLI via SSH:
git clone [email protected]:user/private_repo.git
Create or Activate Minconda for version control
cd into root file of repo that contains setup.py:
pip install -e .
NEW REPO SETUP
$ git config --global user.email [email protected]
$ git clone git@github....
$ git add .
$ git push origin main