- Make a folder with name of the folder in the format -
<Name>_<Rollno>
(Shashank_201CS257) - In that folder you can add any piece of code.
- Make a pull request
- Fork the repo.
- Clone the forked repo using
git clone <repo-url>
to desired directory.
- For each new
submission
,fix
orfeature
create a new branch named<github-handle>-<explanatory-name>
.git branch <branch-name>
- Switch to the new branch.
git checkout <branch-name>
- Make the changes in the new branch.
- Stage the changes for the next commit.
To stage changes from specific files:To stage all the changes at once:git add <filename>
Usegit add .
git status
to track the changes made. - Commit the changes.
git commit -m "<commit-message>"
- Push the changes to your forked repo.
If you're working on a new branch:If the branch already exists:git push -u origin <branch-name>
git push
- Create a
pull request
.
- Use
meaningful small commits
. Refer to this link. Remember to fetch
changes from the upstream repo before working on something.