Skip to content
Foxipa
Code Completion 4 Challenges

Complete the Git commands: Git Remote Management: Configuring and Inspecting Remotes

Create a disposable repository with a local commit, add a bare repository as `origin`, inspect its URL, add a second remote named `upstream`, change the upstream URL, rename it to `backup`, and finally remove `backup`. At each step, verify the local configuration with `git remote`, `git remote -v`, and `git config --get-regexp '^remote\.'`. Confirm at the end that the current branch and HEAD object ID are unchanged by the remote administration operations.

Intermediate ~6 min read

Challenge 1

Complete the Git command to inspect remote configuration.

bash Your answer
git 

Press Ctrl⌘Enter to check your answer

Challenge 2

Complete the Git command to inspect remote configuration.

bash Your answer
git  -v

Press Ctrl⌘Enter to check your answer

Challenge 3

Complete the Git command to inspect remote configuration.

bash Your answer
git  get-url <name>

Press Ctrl⌘Enter to check your answer

Challenge 4

Complete the Git command to inspect remote configuration.

bash Your answer
git  get-url origin

Press Ctrl⌘Enter to check your answer