GIT-Tutorial.md 1.0 KB

GIT Tutorial

Grundlegende Befehle:

git init

git add . || git add

git commit -m "grund" || git commit -a -m "grund"

git remote add origin http://pfad.zum/repo.git

git push -u origin master (einmalig, dann langt git push für push ins master)

git clone url

git clone --recursive

git branch -> Branch erstellen git checkout -> Zum Branch wechseln

Reset lokal Repository

git fetch origin

git reset –hard origin/master

git tag -> Tags anzeigen

git tag -a v1.2.3 -m "Version 1.2.3" -> Kommentierter Tag erstellen

git push origin --tags -> Tags in Repo pushen


Software (Windows oder MultiPlattform)

GitBash & GitGUI

SourceTree

Github Desktop

Git Kraken

Fork

CodeReview

Git Blade