Git cheat sheet.md
This commit is contained in:
parent
aef3c41e81
commit
52fe26335b
14
Git cheat sheet.md
Normal file
14
Git cheat sheet.md
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
#### Checka ut specifik commit
|
||||||
|
|
||||||
|
<code>git checkout <sha></code>
|
||||||
|
|
||||||
|
#### Checka ut senaste commit
|
||||||
|
|
||||||
|
<code>git checkout master</code>
|
||||||
|
|
||||||
|
#### Pull av repository, ignorera och skriv över lokala filer
|
||||||
|
|
||||||
|
<pre><code>git fetch --all
|
||||||
|
git reset --hard
|
||||||
|
git pull
|
||||||
|
</code></pre>
|
Loading…
x
Reference in New Issue
Block a user