Update Git cheat sheet
This commit is contained in:
parent
c930b5cca3
commit
101a716ce9
@ -54,6 +54,18 @@ git pull</code></pre>
|
||||
|
||||
<code>git clean -fxd :/</code>
|
||||
|
||||
## Konfigurera CR/LF
|
||||
|
||||
<pre><code>git config --global core.autocrlf false</code></pre>
|
||||
Detta är oftast default.
|
||||
<pre><code>git config --global core.eol lf</code></pre>
|
||||
När filer checkas ut används alltid LF som EOL.
|
||||
<pre><code>git config core.eol crlf</code></pre>
|
||||
Kan användas för att använda CRLF som EOL endast i aktuellt repository.
|
||||
|
||||
Om identiska (bortsett från CR/LF) filer ersätts i aktuell arbetskatalog hanterar inte Git detta automatiskt. För att normalisera dessa använd:
|
||||
<pre><code>git add --renormalize .</code></pre>
|
||||
|
||||
## Autentisering
|
||||
|
||||
#### Aktivera Windows Credentials manager
|
||||
|
Loading…
x
Reference in New Issue
Block a user