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
- You should have a GitHub account and should be logged in while following the steps
- You should have Git installed on your machine.
Task
- Fork the project repo
- Clone your forked repo on your local machine.
- List down the Remotes of the repo.
- List down the Branches of the repo.
- Upload a screenshot of the terminal with the outputs of 3 and 4.
- View the git log
- Upload a screenshot of the terminal with the output of 6.
Explanation
- Navigate to the repo on GitHub( eg: https://github.com/scorelab/Bassa )
- Click on the 'Fork' button in the top right corner. GitHub will take some time to fork the repo.
- Navigate to the forked repo. Should be like https://github.com/ /Bassa
- Click on the green color 'Clone or download' button
- Copy the command given in the text box. Should be like
https://github.com/ /Bassa.git - Clone it on your local machine. git clone https://github.com/ /Bassa.git
- Navigate to the cloned directory cd Bassa
- List down the Remotes of the repo. git remote -v
- List down the Branches of the repo. git branch -a
- Take a screenshot of the terminal output and upload.
- View the git log. git log
- Take a screenshot of the terminal output and upload.
Task Deliverables: Upload a screenshots: Terminal outputs of step 3, 4 and 6.
Task tags
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