Convert Remote from HTTPS to SSH
Beginner Mode
Start your terminal to use beginner mode.
Scenario:
You have a Git repository at /home/interview/repo where the remote origin is currently configured with an HTTPS URL (https://github.com/user/repo.git).
Task:
Change the remote URL from HTTPS to SSH and verify the connection.
Example:
# Before (using HTTPS)
$ git remote -v
origin https://github.com/user/repo.git (fetch)
origin https://github.com/user/repo.git (push)
# After (using SSH)
$ git remote -v
origin [email protected]:user/repo.git (fetch)
origin [email protected]:user/repo.git (push)
Terminal requires a larger screen
Open this page on a desktop or tablet (≥ 768px) to launch the terminal and practice hands-on.
Linux Terminal Environment
Write and execute your solution in the terminal below.
Track
| Question | Difficulty | Company | Access |
|---|
Need more practice in this area? Explore more questions →
EPAM