See how a minor change to your commit message style can make a difference. Examples
Have a look at CLI util git-conventional-commits to ensure this conventions and generate changelogs
git_current_branch () { | |
local ref | |
ref=$(command git symbolic-ref --quiet HEAD 2> /dev/null) | |
local ret=$? | |
if [[ $ret != 0 ]] | |
then | |
[[ $ret == 128 ]] && return | |
ref=$(command git rev-parse --short HEAD 2> /dev/null) || return | |
fi | |
echo ${ref#refs/heads/} |
/* | |
* This code is taken from Ian Lance Taylor's Gophercon 2019 talk on | |
* a proposed syntax/semantics for generics in Go. As such, it won't | |
* compile on any released Go compiler as of this posting (early 2020). | |
*/ | |
// Tree is a generic binary tree | |
type Tree (type E) struct { | |
root *node(E) | |
compare func(E, E) int |
See how a minor change to your commit message style can make a difference. Examples
Have a look at CLI util git-conventional-commits to ensure this conventions and generate changelogs
package main | |
import ( | |
"fmt" | |
"math/rand" | |
"time" | |
) | |
func main() { |
#!/bin/bash | |
set -ex | |
# 相关技术连接: | |
# https://github.com/XTLS/Xray-install | |
# https://github.com/XTLS/Xray-examples | |
## !!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | |
## !不建议关闭操作系统的防火墙,除非你在服务商中配置了防火墙! |