Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
git_1 [2019-08-19 09:17]
Joakim Forsgren [Kommandon som körs under första genomgången]
git_1 [2019-08-19 09:32]
Joakim Forsgren
Line 45: Line 45:
 git fetch git fetch
 git pull git pull
 +</code>
 +
 +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 "skicka" in i den lokala git
 +git commit -m "ett logg meddelande"
 +# skicka upp det till remote
 +git push
 +# kolla loggen
 +git log
 </code> </code>
  
Line 79: Line 93:
 </code> </code>
  
 +Om ni vill kan ni få en lite annorlunda prompt och några andra inställningar.
 +<code>
 +git clone ~jf/Public/configure
 +cd configure/
 +./install.sh
 +source ~/.bashrc
 +</code>
  
 <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 170: Line 192:
  
 */ */
- 
 </php> </php>