Giter Site home page Giter Site logo

luizac / git-github-practice-exercises Goto Github PK

View Code? Open in Web Editor NEW

This project forked from frontend-ro/git-github-practice-exercises

0.0 0.0 0.0 1.85 MB

Practice git commands

Home Page: https://frontend-ro.github.io/git-github-practice-exercises/

HTML 78.09% CSS 21.91%

git-github-practice-exercises's Introduction

git-github-practice-exercises

These are challenges for practicing the concepts we talked about in our training (Git & GitHub training)

Challenges

To have the best results, don't hurry and carefully read each challenge. Make sure you solve them in order:

Learning challenges

  1. Fork this repo
  2. clone the repo on your PC
  3. Add a new cell into the grid from prep.html and write your name or nickname in there.
  4. Add a new commit following the convention: [username] - description.
  5. Push those changes on master
  6. Add a photo of youself inside the assets/participants folder. Let's name it after your username.
  7. Add that photo to the cell from step 3.
  8. Add one commit for each modified file. Let's keep the same convention as last time: [username] - description.
  9. Push both commits on master.
  10. Create a new branch from master named prep-challenges

--- From now on work on this new branch

  1. Add in prep.html a new cell with a description of yourself.
  2. commit and push this new cell.
  3. Add one of the trainers as a contributor in your project
  4. The trainer will add in prep.html a new cell with a photo of himself/herself.
  5. Trainer pushes on master directly.
  6. Create a PR (Pull Request) to add your code in master.
  7. Fix the merge conflicts
  8. Merge branch. Now on master will be both descriptions!
  9. Hooray! You've finished the learning challenges. You can move on to the next which you'll implement on your own.

Practice challenges #1 (via VSCode)

  1. Move to the master branch of the repo.
  2. Create a new branch called vscode.
  3. Add a new cell into the grid from exercitii.html and write your name or nickname in there.
  4. Add the "Fill-in info" component in index.html and write your name or nickname in there. (you can find it's markup at the bottom of this page)
  5. Add one commit for each modified file. Let's keep the same convention as last time: [username] - description
  6. push these changes on master
  7. Create a new branch from the current one (vscode) named challenges

--- From now on work on this new branch

  1. Add in exercitii.html a new cell with a photo of yourself. commit and push this code.
  2. Add another cell with some short info about yourself. It can be a favorite hobby, your job title, or why you want to learn Git?! After you're done, commit and push this code as well.
  3. Let's use the "Commands list" component and add a list of all the actions used so far in the grid.
  4. commit and push the new modifications
  5. Add in exercitii.html a new cell with the number of commits you've done so far.
  6. commit and push changes in the remote repo
  7. We're wondering whether instead of the list of actions we should add a description about Git/GitHub. Let's create a new branch named challenges-v2 where we're gonna experiement with this.

--- From now on work on this new branch

  1. push the branch in the remote repo. Now you should have 3 branches total.
  2. revert the commit with the actions list
  3. Add a small description about Git inside a new cell from exercitii.html. Then push in the remote repo
  4. We decide to keep the old version.
  5. Make a PR to vscode from challenges branch.
  6. After approval, merge it.
  7. Navigate to vscode branch and pull the changes locally.
  8. Test that everything looks ok.
  9. Done! ๐Ÿ’ช

Practice challenges #2 (via CLI)

  1. Create a new branch from master named cli.
  2. Add a new cell into the grid from exercitii.html and write your name or nickname in there.
  3. Add the "Fill-in info" component in index.html and write your name or nickname in there. (you can find it's markup at the bottom of this page)
  4. Add one commit for each modified file. Let's keep the same convention as last time: [username] - description
  5. push these changes on master
  6. Create a new branch named challenges
  7. Add in exercitii.html a new cell with a photo of yourself. commit and push this code.
  8. Add another cell with some short info about yourself. It can be a favorite hobby, your job title, or why you want to learn Git?! After you're done, commit and push this code as well.
  9. Let's use the "Commands list" component and add a list of all the commands used so far in the grid. commit the new modifications BUT don't push yet
  10. We're about to use the amend command. Let's add this one to the list as well.
  11. We don't want to make another commit. Instead we want to add it to the previous one. Let's run add and then commit --amend.
  12. push this newly edited commit in the remote repo
  13. Add in exercitii.html a new cell with the number of commits so far.
  14. push changes in the remote repo
  15. We're wondering whether instead of the list of commands we should add a description about Git/GitHub. Let's create a new branch named challenges-v2 where we're gonna experiement with this.
  16. push the branch in the remote repo. Now you should have 3 branches total.
  17. revert the commit with the commands list
  18. Add a small description about Git. Then push in the remote repo
  19. Connect GitHub pages to your new branch from this repo.
  20. Navigate to the deplyed app and see the result so far
  21. We decide to keep the old version. Let's delete the challenges-v2 branch from remote as well as from local.
  22. We're ready to merge the challenges branch into master. Let's add one of the trainers as a contributor
  23. Make a PR to master
  24. After approval, merge it.
  25. Navigate to master and pull the changes locally.
  26. Test that everything looks ok.
  27. Change GitHub pages to the master branch and see your final result deployed.

After trainer approval:

  1. On master, "navigate back" to the last commit by us. You'll have to use checkout.
  2. Create a new branch from here named after your username.
  3. Add a card with info about yourself in the finalisti.html page.
  4. Create a PR into the original repo
  5. We merge & celebrate! ๐ŸŽ‰

Components

Commands list

<ol class="commands-list my-5">
  <li>
    commit
  </li>
  <li>
    push
  </li>
  <li>
    pull
  </li>
</ol>

Fill-in info

<div class="fill-in-info">
  <label>
    Numele meu:
  </label>
  <p>
    Jon Doe
  </p>
</div>

git-github-practice-exercises's People

Contributors

luizac avatar iampava avatar andreeatoma avatar daniel-hutanu avatar burastefan avatar

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.