Git: Unterschied zwischen den Versionen

Aus www.wiki.ardumower.de
Wechseln zu: Navigation, Suche
Zeile 1: Zeile 1:
−
Crash-Kurs Github / SVN
+
Crash-Kurs Github  
 +
 
 +
=Windows-Software=
 +
Download: https://desktop.github.com/  
  
−
=Windows=
 
−
==Software==
 
−
*SVN: https://tortoisesvn.net/downloads.de.html
 
−
*Git: https://desktop.github.com/
 
  
 
=Linux/Windows Terminal=
 
=Linux/Windows Terminal=
−
==Software==
+
1. Download: sudo apt-get install git
−
*SVN: sudo apt-get install subversion 
+
−
*Git: sudo apt-get install git
+
  
−
=Repository erstmalig auschecken=
+
2. Repository erstmalig auschecken
−
Windows:
+
−
Linux:
+
  
−
=Entferntes Repository auschecken=
 
  
 +
3. Entferntes Repository auschecken
  
 +
4. Lokales Repository einchecken
  
−
=Lokales Repository einchecken=
 
−
Git:
 
−
* Linux: 
 
 
   git commit -am "Kommentar"  
 
   git commit -am "Kommentar"  
 
   git push  
 
   git push  
−
SVN:
 
−
* Linux:
 
−
  svn commit -m "Kommentar"
 
−
* Windows:
 
  
−
=Dateien zum entfernten Repository als hinzugefügt markieren=
+
5. Dateien zum entfernten Repository als hinzugefügt markieren=
−
* Linux:
+
  git add file.doc
−
** git add file.doc
+
−
* Linux:
+
  
−
=Lokalen Repository-Status einsehen=
+
6. Lokalen Repository-Status einsehen
−
* Linux: git status
+
  git status
−
* Linux: svn status
+

Version vom 26. Mai 2021, 12:53 Uhr

Crash-Kurs Github

Windows-Software

Download: https://desktop.github.com/


Linux/Windows Terminal

1. Download: sudo apt-get install git

2. Repository erstmalig auschecken


3. Entferntes Repository auschecken

4. Lokales Repository einchecken

 git commit -am "Kommentar" 
 git push 

5. Dateien zum entfernten Repository als hinzugefügt markieren=

  git add file.doc

6. Lokalen Repository-Status einsehen

  git status