Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
git_1 [2019-08-19 09:16] Joakim Forsgren [ställ in .gitconfig. se ex nedan:] |
git_1 [2019-08-19 09:32] Joakim Forsgren |
||
---|---|---|---|
Line 25: | Line 25: | ||
git config --global user.email " | git config --global user.email " | ||
git config --global core.editor " | git config --global core.editor " | ||
+ | git config --global core.excludesfile ~/ | ||
git help | git help | ||
Line 44: | Line 45: | ||
git fetch | git fetch | ||
git pull | git pull | ||
+ | </ | ||
+ | |||
+ | De kommandon du kommer att behöva som ett minimum: | ||
+ | <code bash> | ||
+ | # för att se hur läget är | ||
+ | git status | ||
+ | # för att lägga till alla filer | ||
+ | git add "file or pattern" | ||
+ | # för att " | ||
+ | git commit -m "ett logg meddelande" | ||
+ | # skicka upp det till remote | ||
+ | git push | ||
+ | # kolla loggen | ||
+ | git log | ||
</ | </ | ||
Line 78: | Line 93: | ||
</ | </ | ||
+ | Om ni vill kan ni få en lite annorlunda prompt och några andra inställningar. | ||
+ | < | ||
+ | git clone ~jf/ | ||
+ | cd configure/ | ||
+ | ./ | ||
+ | source ~/.bashrc | ||
+ | </ | ||
<php> | <php> | ||
/* | /* | ||
+ | |||
==== Uppgifter efter genomgång: ==== | ==== Uppgifter efter genomgång: ==== | ||
**OBS!** //Se till att ni har git installerat och att ni har en .gitconfig // | **OBS!** //Se till att ni har git installerat och att ni har en .gitconfig // | ||
Line 169: | Line 192: | ||
*/ | */ | ||
- | |||
</ | </ |