टाइप करते समय मुझे एक त्रुटि संदेश क्यों दिखाई देता है git remote add
?
$ git remote add origin remote repository https://github.com/hashanmalawana/Loginsystem.git
usage: git remote add [<options>] <name> <url>
-f, --fetch fetch the remote branches
--tags import all tags and associated objects when fetching
or do not fetch any tag at all (--no-tags)
-t, --track <branch> branch(es) to track
-m, --master <branch>
master branch
--mirror[=<push|fetch>]
set up remote as a mirror to push to or fetch from
उत्तर:
उत्तर № 1 के लिए 1आपको टाइप करना चाहिए:
git remote add origin https://github.com/hashanmalawana/Loginsystem.git
नहीं
git remote add origin remote repository https://github.com/hashanmalawana/Loginsystem.git
^^^^^^^^^^^^^^^^^^
इस तरह, आप एक रिमोट नाम जोड़ते हैं origin
, दूरस्थ रेपो को संदर्भित करते हुए https://github.com/hashanmalawana/Loginsystem.git
और आपने "उपयोग संदेश देखें" जीता
usage: git remote add [<options>] <name> <url>
मैं समझता हूं कि चरण 8 "कमांड लाइन का उपयोग करके GitHub में एक मौजूदा प्रोजेक्ट जोड़ना"भ्रामक हो सकता है:
git remote add origin remote repository URL
लेकिन अंतिम तीन पैरामीटर वास्तव में केवल एक हैं। इसे पढ़ना चाहिए:
git remote add origin <remote repository URL>
इसे संदर्भित करना बेहतर है के लिए वास्तविक आदमी पृष्ठ git remote
git remote add <name> <url>