fixed url typo on git remote add origin

This commit is contained in:
gauthiier 2016-11-01 12:55:22 +01:00
parent 2876257110
commit 07643fd6a5
2 changed files with 5 additions and 2 deletions

View File

@ -104,7 +104,8 @@ $ cd cth2016-assignments</code></pre>
<p>When your (now empty) github repo is created, you need to copy its url:</p> <p>When your (now empty) github repo is created, you need to copy its url:</p>
<p><img src="./img/github-new-repo-clone.png" class='inline-img'/></p> <p><img src="./img/github-new-repo-clone.png" class='inline-img'/></p>
<p>and add a &quot;remote origin&quot; to your local git repo with this command</p> <p>and add a &quot;remote origin&quot; to your local git repo with this command</p>
<pre><code>git remote add origin [your-github-https-url]</code></pre> <pre><code>git remote add origin your-github-https-url</code></pre>
<p>where you replace &quot;your-github-https-url&quot; with your actual github url (for instance, on my repo it is: https://github.com/gauthiier/cth2016-assignments.git)</p>
<h3 id="git-push">git push</h3> <h3 id="git-push">git push</h3>
<p>When this is done, you can now <code>push</code> your local changes to the online github repo</p> <p>When this is done, you can now <code>push</code> your local changes to the online github repo</p>
<pre><code>git push origin master</code></pre> <pre><code>git push origin master</code></pre>

View File

@ -58,7 +58,9 @@ When your (now empty) github repo is created, you need to copy its url:
and add a "remote origin" to your local git repo with this command and add a "remote origin" to your local git repo with this command
git remote add origin [your-github-https-url] git remote add origin your-github-https-url
where you replace "your-github-https-url" with your actual github url (for instance, on my repo it is: https://github.com/gauthiier/cth2016-assignments.git)
### git push ### git push