Skip to content

Latest commit

 

History

History
67 lines (50 loc) · 1.45 KB

CONTRIBUTING.md

File metadata and controls

67 lines (50 loc) · 1.45 KB

Contributing

When contributing to this repository, please first discuss the change you wish to make via issue, email, or any other method with the owners of this repository before making a change.

Please note we have a code of conduct, please follow it in all your interactions with the project.

How to Collaborate:

  1. Fork the repository to your own GitHub account.

  2. Clone the repository to your local machine

$ git clone "https://www.github.com/{Username}/Minor-Project.git"

where username is your GitHub account username.

  1. Create a branch where you can do your local work.
$ git branch {branchname}
$ git checkout branchname
  1. Do your work and stage your changes.
$ git add <filename>
  1. Commit you changes with a commit message containing your name, file(s) worked upon, changes added.
$ git commit -m "Name| files| Changes"
  1. Push changes to your forked repository
$ git push -u origin branchname
  1. Create a pull request to the upstream repository.

Synchronize forked repository with Upstream repository

  1. Create upstream as our repository
$ git remote add upstream "https://www.github.com/siddarthjha/Minor-Project"
  1. Fetch upstream changes in local machine
$ git fetch upstream
  1. Switch to master branch
$ git checkout master
  1. Merge changes in local machine
$ git merge upstream/master
  1. Push changes to your forked GitHub repository
$ git push -f origin master