Git Product home page Git Product logo

git_workshop_inholland's Introduction

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.

Kijk naar de Geschidenis

  1. git log
  2. git lg
  3. Wat is het verschillend? =======

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.