Sustainable Computing Research Lab (SCoRe)

[Git] Getting started with Git

Let's understand how to create a feature branch & send a Pull Request(PR). Here we use "Bassa" project for examples but you can work on one of your favourite project to do this task.

Prerequisites

  1. You should have a GitHub account and should be logged in while following the steps
  2. You should have Git installed on your machine.

Task

  1. Fork the project repo
  2. Clone your forked repo on your local machine.
  3. List down the Remotes of the repo.
  4. List down the Branches of the repo.
  5. Upload a screenshot of the terminal with the outputs of 3 and 4.
  6. View the git log
  7. Upload a screenshot of the terminal with the output of 6.

Explanation

  1. Navigate to the repo on GitHub( eg: https://github.com/scorelab/Bassa )
  2. Click on the 'Fork' button in the top right corner. GitHub will take some time to fork the repo.
  3. Navigate to the forked repo. Should be like https://github.com/ /Bassa
  4. Click on the green color 'Clone or download' button
  5. Copy the command given in the text box. Should be like
    https://github.com/ /Bassa.git
  6. Clone it on your local machine. git clone https://github.com/ /Bassa.git
  7. Navigate to the cloned directory cd Bassa
  8. List down the Remotes of the repo. git remote -v
  9. List down the Branches of the repo. git branch -a
  10. Take a screenshot of the terminal output and upload.
  11. View the git log. git log
  12. Take a screenshot of the terminal output and upload.

Task Deliverables: Upload a screenshots: Terminal outputs of step 3, 4 and 6.

Task tags

  • git
  • getting-started

Students who completed this task

Sun Yiming, Himanshu Gangwani, kubolos231, epicvarun23, samarth123, MissNatalie, O_O, karthikeya, Jonathanyud, geekykid, sudhanshu, Anonimbus, Swaroop, Oloq, aneyyar, Palash, Novasis, phlpp, dishaax6strings, satiricold, Raghavan, simcard0000, Brad, Kelly, Ozan Mirza, Ignacio Illanes, AbhinavPotterhead, agni17, Cyborg Coder, Carolyn, pranav2702, NastyGamer, Adhyan Dhull, Grzegorz Babiarz, EC3x19, Kibree, Ziyaad Banderker, shinysw, Surya Mahardika, mmmmmtan, panda789

Task type

  • code Code
  • chrome_reader_mode Documentation / Training

Level

Beginner
close

2018