Update documentation

This commit is contained in:
Johan 2022-04-08 11:06:17 +02:00
parent 2d3587fde0
commit a16761aafc

View File

@ -13,15 +13,22 @@
<pre><code>git remote rm origin <pre><code>git remote rm origin
git remote add origin {{URL to repo}} git remote add origin {{URL to repo}}
git push -u origin master git push -u origin master
git remote -v git remote -v</code></pre>
</code></pre>
#### Pull av repository, ignorera och skriv över lokala filer #### Slå ihop flera repon ####
Merge project-a into project-b:
<pre><code>cd path/to/project-b
git remote add project-a /path/to/project-a
git fetch project-a --tags
git merge --allow-unrelated-histories project-a/master # or whichever branch you want to merge
git remote remove project-a</code></pre>
#### Pull repository, ignorera och skriv över lokala filer
<pre><code>git fetch --all <pre><code>git fetch --all
git reset --hard git reset --hard
git pull git pull</code></pre>
</code></pre>
#### Återställ lokal arbetskatalog till utcheckad version #### Återställ lokal arbetskatalog till utcheckad version