Code Monkey home page Code Monkey logo

git-101-women-who-code's Introduction

💪 Welcome to Git 101 Workshop Challenges! 💪

If you haven't installed git, please see instructions below.

Solve the following challenges with your workshop buddy (pair programming).

Cheatsheet for Mac & Linux Users
Cheatsheet for Windows Users

Challenge 1

  1. Using the terminal make sure your working directory is set to desktop.
  2. On GitHub Fork the repositiory (so that you are the Master of that repository) >> Screen Shot 2019-03-27 at 11 08 03 am
  3. git clone your new repository onto your Desktop
  4. cd into that repository.

Challenge 2

  1. Create a new branch and git checkout into it.
  2. Update the HTML file with your name and a star beside it then save your file.
  3. To save your new version, first git add the updated HTML file.
  4. Then commit the changes on that branch with a message: git commit -m "write a unique message"
  5. Run git remote -v to see what remote repository is linked to your project.
  6. Finally, git push your branch to GitHub. (Make sure to push the branch using git push origin branch-name)

Challenge 3

  1. On GitHub, open a Pull Request on GitHub for me to review.
  2. If your Pull Request got accepted, your changes are added to the Hall of Fame

Bonus Challenge - Get familiar with the terminal and Git (Use your Cheatsheet)

  1. Open your terminal .
  2. Create a new folder on your Desktop using your command line.
  3. Find the command to change to that folder (directory).
  4. Inside your new directory, create a new file called text.txt
  5. Initialize git for that directory.
  6. On your Desktop, open that file with a text editor.
  7. Write "Github 101" in that file, close it and save the file.
  8. Which Git command do you use to review what changed in the HTML?
  9. Make a new commit with a message to describe the changes you made.
  10. Create a new branch and jump onto that branch. How do you know how many branches there are in the project? How do you know which branch you are on?
  11. Now, git checkout to your master branch and then merge your branch to the master branch.


Git Installation
1 In your terminal, run the command: git version. If Git is not installed, you can find the install file here
2 Set your username and email on git. To set username, run git config --global user.name “your name”. To run your email : git config --global user.email “your email”
Optional: To make your terminal more user-friendly, install oh-my-zsh
For Mac & Linux Users: The installations instructions are here. You can also just run this command in your terminal: sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
b) For Windows 10 Users: You can find installations instructions here, but the process is much much longer, so it is recommended that you do this at home.

git-101-women-who-code's People

Contributors

allthatjoy avatar juancarbe89 avatar mirhamasala avatar

Watchers

James Cloos avatar Somi Jaiswal 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.