View on GitHub

resources

Resources on various topics being worked on at IvLabs

Git and GitHub

Git is a free and open source distributed version control system designed to handle everything from small to very large projects with speed and efficiency.

GitHub offers the distributed version control and source code management functionality of Git, plus its own features. Some alternatives of GitHub are gitlab, BitBucket, etc.

Courses

This is an oversimplified way of contributing. For more advanced usage, we can use branches and commands like adding upstream url and doing git fetch. Please read about these concepts online. Some great explanations can be found here and here. They’re a must read for everyone.

Open Source Contributions with Git

Making a contribution

  1. Fork the repo which you want to work on (eg. https://github.com/ivlabs/resources is original repo where you want to contribute)
  2. Clone the forked repository from your own profile (NOT the original repository) git clone https://github.com/your_userid/resources
  3. Do the changes and commit. git add file1 file2 git commit -m "Adding my contribution"
  4. Push changes to GitHub. This updates your forked repo. git push origin master
  5. Create a pull request.
  6. If the owner finds your changes correct, he will merge it with his original repo.
  7. Congratulations! You just contributed to the original repo.

Resources: Link

Creating a new contribution to the same repo

  1. Delete the old fork (if the master is ahead of your fork).
  2. Create a new fork and do all changes there.
  3. Create a Pull Request and repeat above steps.
  4. Thats it!