Update documentation
This commit is contained in:
parent
2d3587fde0
commit
a16761aafc
@ -13,15 +13,22 @@
|
||||
<pre><code>git remote rm origin
|
||||
git remote add origin {{URL to repo}}
|
||||
git push -u origin master
|
||||
git remote -v
|
||||
</code></pre>
|
||||
git remote -v</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
|
||||
git reset --hard
|
||||
git pull
|
||||
</code></pre>
|
||||
git pull</code></pre>
|
||||
|
||||
#### Återställ lokal arbetskatalog till utcheckad version
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user