Code Monkey home page Code Monkey logo

lab-git's Introduction

logo_ironhack_blue 7

Lab | Git

Introduction

Being able to use both, git and GitHub, is an important skill every software/data engineer must possess. This is even more important when it comes to its ability to handle code in collaborative projects. This lab will help you learn how use it. This lab will help you learn how to use it and understand its importance better.

Instructions

  1. First of all, install git if you don't have it yet, and create a GitHub account. (In case you haven't made it to the bonus section in the Prework, refer to the lesson "Install Git and Create GitHub Account", that you will find there. Follow the guidelines given there. Additionally, you can use these resources: Install git, Version control with git)

  2. Create a new repository in GitHub. Name it Iron+ your name. Example: if your name is Alvaro, you will name the repo IronAlvaro.

  3. Clone that repo to your computer.

  4. Create a file in that folder. Name it about.txt and add a fun fact about yourself. (You can use the command line: touch nameOfTheFile.txt).

  5. Add the file you just created to git.

  6. Commit the change.

  7. Push the changes to the GitHub and check your repository to make sure everything is there.

Great! This was pretty smooth, we hope. ๐Ÿš€

Now let's practice the collaboration part.

Pair Programming exercise

Pair yourself with a classmate. Send the link to your repository on GitHub to your pair via Slack. Now each of you should perform the following set of actions:

  1. Fork the classmate's repository.
  2. Clone it so you have it locally and you can make changes.
  3. Create a new branch named classmate.
  4. Create a new file with your name (ex. maya.txt) and finish the following sentence I enrolled Ironhack's Data Analytics bootcamp because.... When you are done, save the changes.
  5. Add the changes to git.
  6. Commit and push changes. Now, all the changes should be on your GitHub inside the forked repository.
  7. Create a pull request to make changes appear in the original repository.
  8. Merge the branch your classmate created and now everyone's repos should have the original file (about.txt) as well as the new one with your classmate's name.

We hope you enjoyed this activity and learned something new about your classmates! โค๏ธ

lab-git's People

Contributors

sandrabosk 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.