Skip to content

Meghwantsingh/Data-Structures-and-Algorithms

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 

Repository files navigation

GDSC Cusat

Data-Structures-and-Algorithms

GDSC CUSAT

Content

  1. Forking
  2. Cloning
  3. Syncing
  4. Let's Contribute
  5. Creating a New Branch
  6. Help Contributing Guides
  7. References

Steps to follow

1. Forking

You can get your own fork/copy of DS-Algo Notes by using the Fork button.

Fork SS

2. Cloning

You need to clone (download) it to local machine using

$ git clone https://github.com/Your_Username/Data-Structures-and-Algorithms.git

This makes a local copy of repository in your machine. Once you have cloned the Data-Structures-and-Algorithms repository in Github, move to that folder first using change directory command on linux and Mac.

# This will change directory to a folder Data-Structures-and-Algorithms
$ cd Data-Structures-and-Algorithms

Move to this folder for all other commands.

3. Syncing it

Always keep your local copy of repository updated with the original repository. Before making any changes and/or in an appropriate interval, run the following commands carefully to update your local repository.

# Fetch all remote repositories and delete any deleted remote branches
$ git fetch --all --prune
# Switch to `master` branch
$ git checkout master
# Reset local `master` branch to match `upstream` repository's `master` branch
$ git reset --hard upstream/master
# Push changes to your forked `Data-Structures-and-Algorithms` repo
$ git push origin master

4. Let's Contribute

Once you have completed these steps, you are ready to start contributing by checking our Help Wanted Issues and creating pull requests.

5. Creating a new branch

Whenever you are going to make contribution. Please create separate branch using command and keep your master branch clean (i.e. synced with remote branch).

# It will create a new branch with name Branch_Name and switch to branch Branch_Name
$ git checkout -b Branch_Name

To switch to desired branch

# To switch from one branch to other
$ git checkout Branch_Name

To add the changes to the branch. Use

# To add all files to branch Branch_Name
$ git add .

Type in a message relevant for the code reveiwer using

# This message get associated with all files you have changed
$ git commit -m 'relevant message'

Now, Push your awesome work to your remote repository using

# To push your work to your remote repository
$ git push -u origin Branch_Name

Finally, go to your repository in browser and click on compare and pull requests. Then add a title and description to your pull request that explains your precious effort.

Help Contributing Guides

We love to have articles and codes in different languages and betterment of existing ones.

Please discuss it with us first by creating new issue.

References

About

Collection of DSA

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 100.0%