Sustainable Computing Research Lab (SCoRe)

[Git] Getting started with Git 2 : Feature Branches

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. Have a GitHub account and should be logged in while following the steps
  2. Have Git installed on your machine.
  3. Have the project forked and cloned the forked repo on your local machine.

Task

  1. Create a new branch for "Google Code-In 2018: Getting Started Issue"
  2. Add your name to the contributor's list
  3. Commit your changes
  4. Push to your repo.
  5. Send us your PR link

Explanation

  1. Go to the project's issue list, find the issue named "Google Code-In 2017: Getting Started Issue". Make note of the issue id. ( For Bassa, it is https://github.com/scorelab/Bassa/issues/143 & issue id is 143. )
  2. Navigate to the cloned directory.
  3. Create a new branch as 'feature/ -getting-started', git branch feature/143-getting-started git checkout feature/143-getting-started or ( the shortcut ) git checkout -b feature/143-getting-started
  4. Change the CONTRIBUTORS.md
  5. Commit your changes. git add CONTRIBUTORS.md git commit
  6. Give your commit a meaningful commit message. View Git Best Practices Guide.
  7. Push your local branch to your GitHub repo git push origin feature/143-getting-started
  8. Go to your GitHub repo on a browser, you will see a notification asking to create a PR.
  9. Click on the Create Pull Request button, Give a meaningful title to the PR. View Git Best Practices Guide.

Task Deliverables:
Submit a link: PR link

Task tags

  • git
  • getting-started

Students who completed this task

Willy, Nithika, Vento, ssetia19, Smith, kunalbhatia, Łukasz Myśliwiec, Aditya Vardhan Singh, imanoob, sudhanshu, Newe, Hasalu, Palash, airsquared, Yashkh414, Snehal, ShubhamShakyawal, Deeps, Raghavan, haerutea, simcard0000, KanarekLife, rv1402, vishalx360, Geethmaka Dissanayake, Piyush, jmularski, Kalyan, hansraj09, KushagraVats, Prafulla, Aldi Nugraha, Surya Mahardika, Ashish Agrahari, tung2389, Rishabh01, Anurag Parida, Lakshay, 1337_siddh, nfi002, dinesh, rshah2020, Aditya02, EdgeKaos, ajailani4, Anuj Kumar, Santa Kaus, ariban900, JacobWeb, Anshu24, Catheline, greenw0lf, Kaushl, Pranay, aikakitsune, pochaxia, Dayitva, Abhinav_Raj, Ignacio Illanes, Hồ Đức Hiếu, Tharun, CharcoalStick, Anmol Singh, Krzysztof Smaga, rzemykki, gargkanav, Harsh Tripathi, ycwei982, Kush02, coder101, Saan, Andi Alifsyah, rao-athar, dxa_kly, Muthiah Vijay, Sarang S, EdgeKing810, Dilshan Ratnayake, Ttonyxx, Lololol, RohanJnr, Vijay adhithya, shehar48, Sabrina, Yang Jie, Ben.mue, Swetaa23, McMehta, tahsinamio, Eshaa bhasin, BhavyaMuni, Abhijith G, spongedungeon, Cyberbot, SphericalPotatoInVacuum, v01d, Yash Garg, Pizzaaboveall, notNav, echooff, sikfeng, Fizaan, Akshit Goyal, IsMan, O_O, Manish Varrier, rohanssrao, geekykid, kyin20, Sanyam, Gaurav Pandey, FelenAmvrosiy, Jonathan Goh, Darshan, Layarda Putra, n0__one, AshleyGo., genesis331, finchie, minislel, Adhyan Dhull, RohanCode, Ziyaad Banderker, Shravani, HinaCh4n, mmmmmtan

Task type

  • code Code
  • chrome_reader_mode Documentation / Training
close

2018