Complete tutorial about Git, Github and Version Control
Firstly, you should about version control, before knowing about git and github and yes now talking about version control is a system software which keeps the history and track of all the changes that were made to a document. Then a question may rise here why version control ? In the real scenario where a group of developers working together on a project under isolation, even they work on same shared folder there might be some conflicts at the end when you will try to merge them you will huge kind of conflicts then version control comes into the picture it makes easier the collaboration, everything is neatly packed in version control
May people think Git and Github are the same ,no may be they sound similar but there is a huge difference between both of them. Git is an extremely popular version control system that is at the heart of a wide variety of high-profile projects. Git is installed and maintained on your local system (rather than in the cloud) and gives you a self-contained record of your ongoing programming versions, where as Github is a cloud based repository that lets you manage Git repositories. If you have open-source projects that use Git, then GitHub is designed to help you better manage them.
Things to be noted before starting a open source project
Generally speaking, you should open source your project when you feel comfortable having others view, and give feedback on, your work.
No matter which stage you decide to open source your project, every project should include the following documentation:
As a maintainer, these components will help you communicate expectations, manage contributions, and protect everyone’s legal rights (including your own). They significantly increase your chances of having a positive experience.
If your project is on GitHub, putting these files in your root directory with the recommended filenames will help GitHub recognize and automatically surface them to your readers
Why to contribute for Open Source?
There are many great reasons to contribute to open source projects:
- It builds your resume by demonstrating that you can collaborate with others on code.
- It gives you practice with Git and GitHub, which is a valuable data science skill.
- It helps you to build relationships in the open source community.
- It feels good to give back to a project that you use!
Step by Step contribution to Open Source
If you don’t have git on your machine, install it
Fork this repository
Fork this repository by clicking on the fork button on the top of this page. This will create a copy of this repository in your account.
Clone the repository
Now clone the forked repository to your machine. Go to your GitHub account, open the forked repository, click on the code button and then click the copy to clipboard icon.
Open a terminal and run the following git command:
git clone "url you just copied"
Create a branch
Change to the repository directory on your computer (if you are not already there):
cd first-contributions
Now create a branch using the git checkout
command:
git checkout -b your-new-branch-name
Make necessary changes and commit those changes
Now open Contributors.md
file in a text editor, add your name to it. Don't add it at the beginning or end of the file. Put it anywhere in between. Now, save the file.
If you go to the project directory and execute the command git status
, you'll see there are changes.
Add those changes to the branch you just created using the git add
command:
git add Contributors.md
Now commit those changes using the git commit
command:
git commit -m "Add <your-name> to Contributors list"
replacing <your-name>
with your name.
Push changes to GitHub
Push your changes using the command git push
:
git push origin <add-your-branch-name>
replacing <add-your-branch-name>
with the name of the branch you created earlier.
Submit your changes for review
If you go to your repository on GitHub, you’ll see a Compare & pull request
button. Click on that button.
Now submit the pull request, and that’s all you made your contribution to open source
Positive Motivation
“Your victory is right around your corner, Never give up”
Thankyou for reading with patience till the end. Keep going :) For More Updates and info
Gmail-tharanivadde247@gmail.com
Linkedin — https: //www.linkedin.com/in/tharanivadde/
Twitter-https://twitter.com/tharani247