GIT workflow
1. WAAR BEN IK?
$ cd naar themefolder
$ git status
$ git branch
1. BEN IK UP-TO-DATE?
$ git remote-v (geeft je naam v remote repo)
$ git pull origin dev (pull remote repo, dev branch)
3. MAAK EEN BRANCH VOOR THEMING
$ git checkout dev (ga eerst naar dev)
$ git checkout -b theming (maak branch theming en ga er heen)
4. WERK IN THEMING BRANCH
$ git add .
$ git status
$ git commit -m "message"
5. GA TERUG NAAR DEV EN MERGE
$ git checkout dev
$ git merge theming
6. PUSH TO ORIGIN:
$ git push origin dev
nano editor: esc :wq (write & quit)
--------------------------------------------------------------
ABORT A MERGE:
$ git merge --abort
---------------------------------------------------------------
REMOVE A FILE (To remove a file from Git, you have to remove it from your tracked files (more accurately, remove it from your staging area) and then commit.)
$ rm PROJECTS.md
$ git status
The next time you commit, the file will be gone and no longer tracked.
---------------------------------------------------------------
REMOVE THEMING BRANCH AND MAKE A NEW ONE:
Als dit problemen oplevert bv. bij het mergen naar theming kan je ook die theming branch verwijderen en opnieuw een theming branch aanmaken op basis van dev:
git checkout dev
git branch -d theming
git checkout -b theming