When working on a programming project, you'll more than likely use Github. A cloud-based Git repository hosting service that makes it easy to use Git for version control and collaboration.
Working and collaborating with other team members during projects is a common practice in software development and having a clean flow of who is in charge of what, is so important. Let's talk about some good Git practices to use to get into an organized and efficient work flow.
BRANCH OUT
One of the "golden rules" of collaborating is to create a new branch off the default Main branch. If everyone is writing code on top of each other in the same branch, it can cause unnecessary extra work, create bugs, and maybe even break the code. When you create your own branch you are able to test your code before submitting it to the main branch and ensure it works.
. A pull request is important for two reasons.
It allows your fellow collaborators to review and discuss your branch before it gets committed to the main branch.
This request is also how you will merge your new branch into the main branch.
Merging 101
.
After you have resolved any conflicts, you'll need to re-push your new branch.
Navigate to Github and refresh the page and you should now be able to merge in your new branch successfully.
As you can probably assume, that can get tedious quickly.
Following clean Github flow and having great communication with your team mates will help keep you from doing unnecessary work.
Happy Coding!
SOURCES:
SOCIAL SHARE CARD GENERATOR