markdown 很棒的Git

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了markdown 很棒的Git相关的知识,希望对你有一定的参考价值。

**Git Branch Naming Conventions**

### `<type>/<name>`

#### `<type>`

```
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).
```

#### `<name>`

Always use dashes to seperate words, and keep it short.

Suffix <JIRA_NO> (Optional)

#### Commit message convention

```
<Jira-issue-ID> <action-verb> <explanation>
<description (optional)>
```

##### 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`

以上是关于markdown 很棒的Git的主要内容,如果未能解决你的问题,请参考以下文章

Markdown 基本语法

没有找到很棒的字体

11个很棒的 AngularJS 工具

很棒的 CSS 效果

python 很棒的python代码

csharp 很棒的代码