Git Workflow Etiquettes Last Updated : 05 Jun, 2024 Comments Improve Suggest changes 2 Likes Like Report Version control systems like Git have revolutionized the way developers collaborate on projects. However, efficient collaboration depends on sticking to certain manners that streamline the workflow and ensure code quality. Here are some important Git workflow etiquettes to follow. Table of Content 1. Naming conventions for Branches2. Etiquettes for Git Commit Messages3. Pull Request Guidelines1. Naming conventions for BranchesYour branch name syntax can be similar to something like this: name/issue#/descriptionHere name may be Your Github Id or your initial name, issue denotes the issue number and a very short description about the branch Example: dora/45/new-featureYou can also consider this naming convention: A. If it's a new feature feature/name/issue# B. If branch is for fixing new bug bug/name/issue# Example: new-footer/dora/2512. Etiquettes for Git Commit MessagesHaving proper commit messages helps in increasing the readability of git logs and file history. One may consider naming your commit messages in the following categories: feat - If you work on a new featurefix - If your code changes help in fixing some bugdocs - Documentation related changesstyle - Changes related to formattingrefactor - If changes are related to just restructuring the codebasetest - If new tests are added or old tests are modifiedchore - Regular maintainer changes, for example, documentation generation, versioning, build processing, etcExample: feat: New xyz component addeddocs: Updated broken blog page linkYou can also make more accurate commit messages by mentioning the scope of files: type(scope): MessageHere, type includes various categories that are discussed above, for example, feat, bug, docs, etcScope - represents the place where the code changes are made, for example, file-names Example: chore(netlify): Redirected old models3. Pull Request GuidelinesWhen Opening a Pull Request, do consider adding the following points in the message Issue number - Issue the PR may closeChanges - Write in detail about the new changes you madeRelated Issue/PR's - Link all the related issues and pull requestExample: # Closes #412 # Changes - Change 1 - Change 2 # Related Issues: - Issue #410 - PR #387Here, Closes #412 will indicate to Github that merging this PR will close the issue numbered 412 successfully and Changes can be listed out with the bullets for increasing readability. Create Quiz Comment A aniruddhashriwant Follow 2 Improve A aniruddhashriwant Follow 2 Improve Article Tags : Web Technologies Git GitHub Explore Git IntroductionGit Introduction 5 min read Introduction to Github 5 min read An Ultimate Guide to Git and Github 11 min read What is Git? 6 min read What Is Gitlab? Complete Guide 4 min read Git Bash 9 min read Git Installation and SetupHow to Install GIT on Linux 4 min read Git - Environment Setup 2 min read How To Install Git on Ubuntu 20.04 3 min read How to Install Git in VS Code? 2 min read How to Install Git on Cygwin? 2 min read How to Install and Use GIT in Android Studio? 4 min read How to Setup Git Using Git Config? 3 min read Git- Setting up a Repository 3 min read How to install Git on Redhat Linux 9? 4 min read How to Install Git on Termux? 2 min read How to Install Git in FreeNAS? 4 min read How to Install Git on Raspberry Pi? 2 min read How to Install GIT on VMWare? 2 min read How to Install Git in Cpanel Server? 3 min read How To Install Git on AWS? 2 min read How to Setup Git Server on Ubuntu? 6 min read How to Install Git on Windows Subsystem for Linux? 2 min read All Git CommandsBasic Git Commands with Examples 4 min read 50+ Essential Git Commands for Beginners and Developers 7 min read Top 12 Git Commands for Every Developer 9 min read Essential Git Commands 3 min read Useful Git Commands and Basic Concepts 5 min read All Git Commands You Should Know 8 min read Simple and Concise Git Commands That Every Software Developer Should know 4 min read Most Used Git CommandsGit Init 3 min read Git Pull 4 min read Git Push 4 min read Git Clone 5 min read Git Rebase 8 min read How To Fetch Remote Branches in Git ? 3 min read Git Status 2 min read Git Add 2 min read Git Commit 2 min read Git Reset 3 min read Git BranchBranching Strategies in Git 8 min read Introduction to Git Branch 4 min read How To Create Branch In Git? 2 min read How to Create a Branch In Git from Another Branch? 3 min read How to Create a New Branch in Git and Push the Code? 8 min read How To Publish A New Branch In Git? 4 min read How to Create Git Branch With Current Changes? 1 min read Create a Git Branch From Another Branch 4 min read How to Create a New Branch in Git? 4 min read How to Create Branch From a Previous Commit Using Git? 2 min read How To Visualizing Branch Topology in Git? 3 min read How to Check Branch in Git? 2 min read How to Clone a Branch in Git? 3 min read How to Fetch All Git Branches? 2 min read Git MergeGit - Merge 4 min read Git Checkout And Merge 5 min read How to Merge Two Branches in Git? 4 min read How to Merge a Git Branch into Master? 3 min read How to Replace Master Branch with Another Branch in GIT? 2 min read Git Merge and Merge Conflict 3 min read Git Tools and IntegrationWorking on Git for GUI 4 min read How Git Version Control Works? 11 min read How To Write CI/CD Pipeline Using GitLab? 8 min read Git and DevOps: Integrating Version Control with CI/CD Pipelines 11 min read How To Create A Basic CI Workflow Using GitHub Actions? 5 min read How To Set Up Continuous Integration With Git and Jenkins? 4 min read How to Set Up a CI Pipeline for Ktor Using GitHub Actions? 6 min read Introduction to GitHub Actions 4 min read Basic CI Workflow For Android using GitHub Actions 2 min read Integrating Jenkins With Popular GitHub 8 min read Managing Git Repositories with GitLab 3 min read Git Remote RepositoriesUnderstanding Git Repository 4 min read Git- Setting up a Repository 3 min read Creating Repository in GitHub 3 min read Working With Git Repositories 7 min read Collaborating with GitGit - Fork 4 min read Difference Between fork and clone in GitHub 3 min read How to Fork a GitHub Repository? 3 min read Sync Your Fork With Master in GitHub 3 min read How to Update or Sync a Forked Repository on GitHub? 2 min read Advanced Git CommandsGit Rebase 8 min read Git - Difference Between Merging and Rebasing 3 min read What is Git Interactive Rebasing? 4 min read How to Undo a Git Rebase? 3 min read How To Rebase a Local Branch Onto a Remote Master in Git? 3 min read How to Fix - Git Refusing to Merge Unrelated Histories on Rebase? 3 min read Using Refs And Reflogs In Git 3 min read Recovering Lost Commits in Git 2 min read How to Restore a Deleted Branch or Commit with Git? 3 min read How to Change a Git Commit Message After a Push? 3 min read Git - Cherry Pick 6 min read How to cherry-pick Multiple Commits in Git? 4 min read How to Use the "cherry-pick" Command in Git? 3 min read Like