This is a project created by the customer interface manager to help the team understand how github issues work.
- Go to https://github.com/raghavchugh21/ISDL-Practice-Project
- Go to Issues
- Find the issue to fix your roll number
- Leave a comment "I'll work on this issue"
- Go back to the repository and fork it, and select your account
- Go to your own github page, open the forked repository and click on Clone or Download, select clone with HTTPS and copy the code
- Create a new folder on your desktop named "open-source-contributions"
- Open the terminal or CMD and type
cd desktop/open-source-contributions
- Then Type
git clone {The Link You Copied}
- Now type
cd ISDL-Practice-Project
- Type git branch, you should see master because that is the branch you are working on
- Type
git checkout -b {Issue Number You're Working On}
- You can find the issue number next to '#' in your issue in the issues tab on the main repo; they will be in the range 1-8 - Type
git branch
and you should see *{Issue Number} in the green color, that means this is a new branch you created to fix the issue - Type
code .
to open in vscode, change your roll number and save the file - Type
git diff
and you should see the changes you made to your roll number - Type
git pull
- Type
git branch --set-upstream-to=origin/master {Issue Number}
- Type
git add .
- Type
git commit -m "This fixes #{Issue Number}"
- Type
git push origin HEAD
- Now go to your Github page and click on the notification you get "Compare and Pull request"
- Click on 'Create Pull Request'
- Congrats, You're done!