SenneRoot / git_workshop_inholland

I am going to teach 2nd year students how to use git.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Instructies voor de workshop.

Verschillend

  1. Zonder wijzinging type: git dif.
  2. Ga naar main.c en doet de TODO
  3. Wat zie je als de command git diff type?

Staging en unstaging

  1. Beschrijf het verschillend:
    1. git reset
    2. git reset --soft
    3. git reset --hard
  2. Verander iets in main.c. Zorg dat je heeft geen open wijzinging
  3. git add them
  4. git reset them
  5. git checkout .
  6. git reset --soft HEAD^
  7. Wat gebeurde?
  8. git reset origin/master --hard

Branches

  1. Creëer een branch feature/playing_git met je wijzinging
  2. Wijzinnging iets in main.c
  3. commit it
  4. let the master resemble origin/master again
  5. check that your branch still has your commit
  6. Merge je wijzinging naar de master. Hint gebruik git merge

rebasing and ammending

  1. Wat is de doel van rebasing?
  2. Wanner wil je rebasing of ammending je commits?
  3. Maak een branch (of backup als je onzeker voel je)
  4. Checkout de branch
  5. Maak een wijzinging en ammend het latste commit
  6. Zorg dat je 2 non pushed commits heeft. Maak een nieuwe als die nodig is.
  7. git rebase -i combineer alle niet gepushed commits in een.

About

I am going to teach 2nd year students how to use git.


Languages

Language:C 81.6%Language:CMake 18.4%