The Document you need before your Submissions.
1.Fork the repo in which you are committing the file (See upper Right corner).
2.clone the Repository in youe local System.
3.create a new Branch.
4.Make your changes.
5.Push it back to your repo.
6.Click the Compare & pull request button.
7.Click Create pull request to open a new pull request.
(eg. 20191CSE0445_PrakharMishra_ques1),,,,,making sure while committing your file.
fork: https://github.com/<YourUserName>/dem
clone: git clone https://github.com/<YourUserName>/demo
Branch: git checkout -b new_branch
Use remote to UpStream: git remote add upstream https://github.com/kedark3/demo
Commit to a new_branch?? // Don't Worry you can add up to the main branch to.
$ git checkout -b new_branch
Switched to a new branch ‘new_branch’
$ echo “some test file” > test
$ cat test
Some test file
$ git status
// to get status on your file
On branch new_branch
No commits yet
Untracked files:
(use "git add ..." to include in what will be committed)
test
nothing added to commit but untracked files present (use "git add" to track)
$ git add test
$ git commit -S -m "Adding a test file to new_branch"
[new_branch (root-commit) 4265ec8] Adding a test file to new_branch
1 file changed, 1 insertion(+)
create mode 100644 test
$ git push -u origin new_branch
Enumerating objects: 3, done.
Counting objects: 100% (3/3), done.
Writing objects: 100% (3/3), 918 bytes | 918.00 KiB/s, done.
Total 3 (delta 0), reused 0 (delta 0)
Remote: Create a pull request for ‘new_branch’ on GitHub by visiting:
Remote: http://github.com/example/Demo/pull/new/new_branch
Remote:
- [new branch] new_branch -> new_branch
Article: https://opensource.com/article/19/7/create-pull-request-github
Video: https://youtu.be/dSl_qnWO104