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.
–– Git
Git Basics helps users learn the basics of Git.
In order to contribute to this project, follow the steps below:
-
Fork the project, using the gray
Forkbutton in the top right of this page -
Clone your forked repository
git clone https://github.com/<YourUsername>/GitBasics.git
-
Create a branch in your local repository to make your changes in
git checkout -b your-branch-name -
After making changes in your local repository, add the files changed
git add file-name -
Commit changes when you are satisfied. Refer to Commit Guidelines
git commit -m "<message>" -
Push changes to your remote forked repository
git push -u origin your-branch-name -
Go back to your repository on GitHub and submit a Pull Request with the commits you want to merge with the project
-
Follow up with the comments in your pull requests until it is merged
Use the following commit category at the beginning of your message, to make commits easy to follow:
- feat - for new features
- fix - for defects or bugs
- chore - for changes that don't alter the source, but necessary
- ci - for ci pipeline changes
- docs - for documentation changes
- perf - for performance enhancements
- refactor - for refactors; altering the code, but not changing functionality
- revert - reverting changes
- style - for cosmetic changes
- test - for unit tests
- Maintain original code formatting to avoid merge conflicts
- Keep comments meaningful. Do not add any unnecessary comments in between the code