Sustainable Computing Research Group (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/<your_github_username>/Bassa.git
  6. Clone it on your local machine.
      git clone https://github.com/<your_github_username>/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 tags

  • git
  • getting-started

Students who completed this task

Przemysław Włochowicz, Abhijit Kumar, Vishal Sodem, Arnau Fite Cluet, ItsPugle, Jeffrey Shen, Andi Qu, Amit Sharma, Angel de Caldas, Shijia Liao, Tanmay Anand, Abakir Hanna, camgua20, Hartama, Shivansh Sharma, Jose de la Fuente, Joshua, Kalyan C, Aryan Jain, Birkhoff Lee, JULIKA KADER MAIDEEN, Darsh, Aryaman Aryaman, Rainer Regan, Weka, G_K, Nguyen Trung Nghia, Alcatraz3D, eisenhaus335, HPA axis, haru, Colin Siles, Miko, Farhan Mufti Hilmy, Shravya Nandyala, Ajith K, Xun Xu, Max Iksinski Strózik, Nikita Serba, Tio Irawan, Sean Tcherniev, Kaleb Gezahegn, Linda Thelen, Harshada Shelarkar, Parth Garasiya, hasia, Jakub Podolak, Udit Sanghi, Al Mao, Zachary Arroyo, Shaurya Singhal, anushka londhe, Andi Alifsyah, William Nathaniel, n1jna, Ömer Kural, shubhmehtani, Trần Thái Sơn, swimdance15, Afshaan Londhe, Alex Feng, Rohith, Ian Duran, Daniel Dikaleh, Arun Pattni, rockinthespecs, Burlyn Andall-Blake, Chris2fourlaw, Nikodem Szlagor, Saurabh Sharma, IUserPPAKD, Sudhanshu Singh, Dvir Akerman, Hakkı Alp Tekin, anvitha veer, OHM OMAR, SG, Marcel Kamiński, Alok N, Sagar Khatri-1, Haikal Izzuddin, Matthew Lim, Stam Kaly, Ayush Munot, Kevan Nguyen, Thái Dương Bảo Duy, Mehant Kammakomati, AD, wawolf24, Nguyen Loc Nguyen Huynh, Chien Ha, Vicky Yu, Ari Glenn, KULDEEP PRASAD, Tan Chien Hao, Dragos Balan, mjwojs, Shrey Jain, Arianna Walters, Rohan Shiva

Task type

  • code Code
  • chrome_reader_mode Documentation / Training
close

2017