Sustainable Computing Research Group (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 2017: 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 repo 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.
  10. Comment PR link here.

Task tags

  • git
  • getting-started

Students who completed this task

Vishal Sodem, wjch, Łukasz Myśliwiec, Aravind Narayanan, Priyanshu Sahani, Kowshik Dey, chirag kumar, Andi Qu, Chaitanya Baranwal, TTomsoN, Said Sellai, Nitish Dashora, Amit Sharma, shubhmehtani, Azis Naufal, Tanmay Anand, ATechnoHazard, Vikrant Reddy, Felix-1, Shlok J, Harnoor Singh, Hartama, Saarthak Luthra, Shivansh Sharma, Benjamin Mueggenburg, Jose de la Fuente, Yue Ji, Sarvesh Warge, Kalyan C, Aryan Jain, JULIKA KADER MAIDEEN, Samyak Sarnayak, Rainer Regan, tegenton, Ömer Kural, Paikea Melcher, ItsPugle, Ajith A R, Alexius Adhitya K., Reza Juliandri, Miko, Abhinav Pola, Farhan Mufti Hilmy, Shravya Nandyala, Xun Xu, Prirtish Jain, Wojciech Sadowski, Tio Irawan, Sean Tcherniev, Madhawa Dissanayake, Antonina Lewicka, mbar, nicogramm, Aryaman Aryaman, Sambhav Jain, PRANAY SHARMA, Alex Xue, ycwei982, Tanner Weinacker, Sourabh Saini, Krzysztof Parzniewski, anushka londhe, Andi Alifsyah, Andre Christoga, Damian Fajfer, Gaurav, Samarth Sharma, Trần Thái Sơn, Afshaan Londhe, Alex Feng, PiyushGupta, Đức Thái Vũ, Abdulazeez Abdulazeez, Christos Falas, Ian Duran, Sombuddha Chakravarty, Moses Paul, rockinthespecs, Tanmay H. Singh, IUserPPAKD, Sudhanshu Singh, Abhinay Kaushlya, Revanth, Vanshika Dhull, Shehar Yaar Tausif, Harsh Singh, Knayder, shailesh chauhan, Ekansh Mahendru, Alok N, Angeli M, Padam Chopra, Kevan Nguyen, Divij Singh, camgua20, Thái Dương Bảo Duy, Mehant Kammakomati, AD, wawolf24, Nguyen Loc Nguyen Huynh, Arek Cios, Olive Uzoma, Chien Ha, Vicky Yu, KULDEEP PRASAD, YurBoiRene, Adhyan Dhull, Chuyue, Shrey Jain, Rohan Shiva

Task type

  • code Code
  • chrome_reader_mode Documentation / Training
close

2017