Giter VIP home page Giter VIP logo

sepm_project_practice_repo's Introduction

Hands on GIT and GITHUB workflow practice.

Follow the instructions

  1. Fork the repo to your account.

  2. Clone the forked repo to your local machine using git clone command.

  3. cd into the cloned folder (most important)

  4. Do the following in the terminal

    • $ git remote -v
      • (will list URLs of your repo since you clone from it.)
    • $ git remote add upstream https://github.com/harishankarpv/SEPM_project_practice_repo.git
      • (will connect the original forked repo)
    • $ git remote -v
      • (You must see 4 URLs, 2 yours and 2 of the original forked repo.)
    • $ git pull upstream master
      • (should get the mesage: Already up to date.)
  5. Create a new branch

    • $ git branch (Will list all branches, currently only master)
    • $ git checkout hari (command will create a new branch hari and checkout to it. Name your branches your name)
    • $ git branch (Now you should see both master and hari branch)
  6. Open testfile.cpp in a code editor (preferably vscode) and perform task assigned.

  7. Commiting your changes. Run the following commands in terminal

    • $ git status -> will show you have changes to be commited.
    • $ git add . -> add the changed file to staging area.
    • $ git commit -m "your message here" -m "your name here"-> your first message must be like, Successfully uncommented bubble sort function and second message must be your name in UPPERCASE.
    • $ git status -> will show working tree is clean, since you commited you changes.
    • $ git log -> will show all commits made so far.
  8. Push code to your repo

    • $ git push orign hari -> you will be pushing to your new branch, so change to yours in command.
  9. Create a pull request. Go to your GITHUB account and create pull request.

    • You are creating a pull request from your forked repos -> your branch to original repos-> master branch
    • create pull request
    • I will merege the pull request, then the changes will be seen in the files on the original repo

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.