作者:00zhhl_513 | 来源:互联网 | 2023-06-10 18:51
本文由编程笔记#小编为大家整理,主要介绍了markdown 很棒的Git相关的知识,希望对你有一定的参考价值。
本文由编程笔记#小编为大家整理,主要介绍了markdown 很棒的Git相关的知识,希望对你有一定的参考价值。
**Git Branch Naming Conventions**
### `/`
#### ``
```
bug - Code changes linked to a known issue.
feature - New feature.
relase - New Release.
fix/patch - fixes to the codebase.
hotfix - Quick fixes to the codebase.
misc - other miscellaneous stuff
tests - everything about test related
experimental - every experimental reseach (will never be merged).
```
#### ``
Always use dashes to seperate words, and keep it short.
Suffix (Optional)
#### Commit message convention
```
```
##### Example
```
[ED-666] fix exported JS code from the data-click attribute
On scene reopening, path strings were manipulated by the pathHandler method. We had to ignore paths coming from JS code in data-click. A RegExp check now filters which paths should be manipulated.
```
#### Branch Examples
```
release/v3.1.4
feature/new-onboarding-screen
feature/new-unicorn-emoji-SV1002
hotfix/dockerfile-base-image
bug/login-ie
```
To delete all local branches that are already merged into the currently checked out branch:
`git branch --merged | egrep -v "(^\*|master|dev)" | xargs git branch -d`
Once you delete the branch from the remote, you can prune to get rid of remote tracking branches with:
`git remote prune origin`