GithubHelp home page GithubHelp logo

gittest's Introduction

GitTest

This repo is meant to help you get some basic hands on experience with the most basic git commands.
It consists of a Spice Girls lyrics txt file - wannabe.txt - that needs some fixing, And a simple python script that contains a few very simple bugs.

To work with this git repo, follow the following steps:

  1. Fork the https://github.com/daximillian/GitTest.git to your Github user. There's a fork button on the top left of the Github site. Now you have a copy of my repo to work on privately, without affecting my repo. I'll refer to your copy with the $USER variable here. Replace that with your Github user name.
  2. Create two separate folders on your local machine. Call one folder Sheldon, and one folder Penny.
  3. cd into the Sheldon folder
  4. git clone https://github.com/$USER/GitTest.git
  5. cd into the Penny folder
  6. git clone https://github.com/$USER/GitTest.git
  7. cd out of the Penny folder
  8. You are now going to simulate two programmers working on the same codebase at the same time: Penny and Sheldon.
  9. cd into the Sheldon folder and fix all the BOTH and SHELDON lines in the wannabe.txt file.
  10. cd into the Penny folder and fix all the BOTH and PENNY lines in the wannabe.txt file.
  11. Your changes in both folders are local. You are now going to add them to the server copy, the repo you forked and cloned from Github in this case.
  12. You're going to stage all your changes, and comment on them with the following commands:
  13. git add .
  14. git comment -m "add Penny's fixes to the wannabe.txt file"
  15. Now you're going to push the staged Penny changes to your forked folder:
  16. git push origin main
  17. Did it work?
  18. cd into the Sheldon folder.
  19. You're going to stage the Sheldon changes now:
  20. git add .
  21. git comment -m "add Sheldon's fixes to the wannabe.txt file"
  22. Now you're going to push the staged Sheldon changes to your forked folder:
  23. git push origin main
  24. Did it work?

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.