Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/codewithmuh/clone-private-repo
This repository is used for youtube video. All the commands used in my video are available here in readme.
https://github.com/codewithmuh/clone-private-repo
aws-ec2 clone clone-git private-repository ubuntu-server
Last synced: about 5 hours ago
JSON representation
This repository is used for youtube video. All the commands used in my video are available here in readme.
- Host: GitHub
- URL: https://github.com/codewithmuh/clone-private-repo
- Owner: codewithmuh
- License: mit
- Created: 2024-08-14T10:59:45.000Z (3 months ago)
- Default Branch: main
- Last Pushed: 2024-08-14T13:13:11.000Z (3 months ago)
- Last Synced: 2024-08-15T14:39:29.952Z (3 months ago)
- Topics: aws-ec2, clone, clone-git, private-repository, ubuntu-server
- Homepage: https://youtu.be/kgrWQ2xV_Gc
- Size: 3.91 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# How to Clone a GitHub Private Repository on a Server | Step-by-Step Guide
### Youtube Video: https://youtu.be/kgrWQ2xV_Gc
### 1. Generate a New SSH Key
```bash
ssh-keygen -t ed25519 -C "[email protected]"
```
### 2. Add Your SSH Key to the SSH Agent
```bash
eval "$(ssh-agent -s)"
ssh-add ~/.ssh/id_ed25519
```
### 3. Add the SSH Key to Your GitHub Account
copy the SSH public key to your clipboard:
```bash
cat ~/.ssh/id_ed25519.pub
```Go to GitHub Settings > SSH and GPG keys, click "New SSH key," and paste your key.
### 4. Test the SSH Connection
```bash
ssh -T [email protected]
```### 5. Update Repository Remote URL
Go to the folder of your repo:
```bash
git remote set-url origin [email protected]:GITHUB_USERNAME/REPO_NAME.git
```### 6. Pull the Repository
```bash
git pull origin main
```