version control ist not only for developers

Author: Stephan  |  Category: Linux, Sonstiges, windows

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

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

One Response to “version control ist not only for developers”

  1. Stephan Says:

    Eine Ergänzung:

    um das Repository remote zu speicher ist folgendes nötig


    $ git remote add origin ssh://user@example.com/GIT/project.git
    $ git push origin master

Leave a Reply