Github git: Difference between revisions
From wikinotes
(Created page with "= Github push/pull with SSH key = <blockquote> You'll need to change the github URL you are using. <syntaxhighlight lang="bash"> git clone https://github.com/<Username>/<Proj...") |
No edit summary |
||
Line 15: | Line 15: | ||
</source> | </source> | ||
</blockquote><!-- github push/pull with ssh key --> | </blockquote><!-- github push/pull with ssh key --> | ||
= importing existing git repo = | |||
<blockquote> | |||
See [[git httpserver|hosting a git http server]] to share with github. | |||
You can then use that to import your project. | |||
</blockquote><!-- importing an existing repo --> |
Revision as of 15:30, 19 September 2021
Github push/pull with SSH key
You'll need to change the github URL you are using.
git clone https://github.com/<Username>/<Project> # !!bad!! git clone git@github.com:<Username>/<Project> # good git clone github.com:<username>/<project> # also good (must specify user in ~/.ssh/config)You can quickly test authentication
ssh git@github.com -i ~/.ssh/github
importing existing git repo
See hosting a git http server to share with github.
You can then use that to import your project.