====== git ======
=== Reset: Move in time ===
Aktueller Stand: HEAD
1 Commit zurück:
git reset HEAD~1
=== Branches ===
== Create a Branch ==
git checkout -b my-branch-name
== Merge with master ==
git checkout master # switched back to master
git checkout master # get back to master branch; changes are gone for now
git merge my-branch-name
== Push to origin ==
git push origin my-branch-name # push the branch
git pull origin master # get new data from github
=== Workflow ===
* Create a branch
* When branch is done: Push it to remote (Github)
* Pull it from Remote to local dev environment
==== old ====
== Commit: ==
git commit -am "Beschreibung"
git push
== Geänderte Dateien dazufügen: ==
git add . # all changed files
git add myfile # one specific file
== Update: ==
git pull (?)
== Einfache Anleitung: ==
http://rogerdudler.github.io/git-guide/