Git provides flexibility, allowing you to create workflows that suit your needs and preferences. However, there are best practices and caveats to be aware of.
Push to only bare repositories
Keep either file in merge conflicts
Sometimes when resolving a merge conflict, you may want to keep one file instead of the other. You don’t need to open up the files and fix potentially hundreds of conflicts
Squashing commits with rebase
The git rebase command offers powerful options in its –interactive mode, commonly abbreviated as -i. One of the most popular features is the ability to squash commits