Skip to content

Codechef-Presidency-University/DSA-LS-1

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

image

DSA LS-1

The Document you need before your Submissions.

Read this for your first Pull Requests.

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.

Remember to save your file with (rollno_name_questionno).

(eg. 20191CSE0445_PrakharMishra_ques1),,,,,making sure while committing your file.

Your Important Commands Are here to serve you better!!!

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.

Your new branch should be with your roll no: like (cse_xxxx_newbranch).

$ 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

Refer This Article and youtube video.

Article: https://opensource.com/article/19/7/create-pull-request-github
Video: https://youtu.be/dSl_qnWO104

About

The Document you need before your Submissions.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages