Bird
0
0

Which Git command correctly adds a remote named upstream with URL https://github.com/example/repo.git?

easy📝 Syntax Q3 of 15
Git - Remote Repositories
Which Git command correctly adds a remote named upstream with URL https://github.com/example/repo.git?
Agit add remote upstream https://github.com/example/repo.git
Bgit remote create upstream https://github.com/example/repo.git
Cgit remote add upstream https://github.com/example/repo.git
Dgit remote set upstream https://github.com/example/repo.git
Step-by-Step Solution
Solution:
  1. Step 1: Recall correct syntax for adding a remote

    The command to add a remote is 'git remote add '.
  2. Step 2: Match the command to the options

    git remote add upstream https://github.com/example/repo.git matches the correct syntax exactly.
  3. Final Answer:

    git remote add upstream https://github.com/example/repo.git -> Option C
  4. Quick Check:

    Add remote syntax [OK]
Quick Trick: Use 'git remote add ' to add remotes [OK]
Common Mistakes:
  • Using 'git add remote' instead of 'git remote add'
  • Using 'git remote create' which is invalid
  • Using 'git remote set' incorrectly

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Git Quizzes