version control ist not only for developers

Author: stephan  |  Category: Linux, Sonstiges, windows

[lang_de]
Wer kennt das nicht :
„Ach hätte ich nicht noch die alte Version meiner Bookmarks, meines Lebenslaufes oder anderen wichtigen Oficedokuments“
Da kommt der Gedanke ins Spiel ,solche Dokumente zu versionieren mit einem Versionierungstool , wie es die Entwickler für Code verwenden.
Ein solches Tool ist Git. Git wurde ursprünglich von Linus Torvalds für den Linuxkernel entworfen existiert aber auch für Windows.
Nun wollen wir unser erstes Reposiory anlegen

cd mydir
git init
git add .
git commit

Kommandos um veränderungen anzuschauen
git status
git diff

Commit History
git log
letzte Änderung Rückgängig machen
git revert HEAD

Ein Nützlicher Link:

https://git.wiki.kernel.org/index.php/GitCheatSheet

[/lang_de]
[lang_en]
Who doesn’t know this:
„If I only had an old version of my bookmarks, my curriculum or another important office document“
This is the point to think about version control like developers use for Code.
One version control tool usable for this is git.
Git was developed by Linus Torvalds and others for the Linux Kernel but it also exist a windows version.
Lets make our first repository

cd mydir
git init
git add .
git commit

How track down Changes ?
git status
git diff

Commit History
git log
Howto revert the last commit
git revert HEAD

A useful link

https://git.wiki.kernel.org/index.php/GitCheatSheet

[/lang_en]

Tags: , , , , , , , , , , ,