Git cheat sheet.md

This commit is contained in:
Johan 2022-02-17 20:05:51 +01:00
parent aef3c41e81
commit 52fe26335b

14
Git cheat sheet.md Normal file
View 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>