linux下通过按照如下修改.ssh/config设置账号密码,并 ssh -vT [email protected],成功后输出Hi Kirrito-k423! You've successfully authenticated, but GitHub does not provide shell access.。
Host * # Win报错取消下面三行 getpeername failed: Not a socket getsockname failed: Not a socket ControlMaster auto ControlPath /tmp/sshcontrol-%C ControlPersist 1d ServerAliveInterval 30
Windows PowerShell 平台
假如是windows下,如果安装了git bash,会有connect.exe的程序
配置如下[^1]
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
Host github.com User git Port 22 Hostname github.com # 注意修改路径为你的路径 IdentityFile "C:\Users\Administrator\.ssh\id_rsa" TCPKeepAlive yes # 这里的 -a none 是 NO-AUTH 模式,参见 https://bitbucket.org/gotoh/connect/wiki/Home 中的 More detail 一节 ProxyCommand E:\\commonSoftware\\Git\\mingw64\\bin\\connect.exe -S 127.0.0.1:7890 -a none %h %p
Host ssh.github.com User git Port 443 Hostname ssh.github.com # 注意修改路径为你的路径 IdentityFile "C:\Users\Administrator\.ssh\id_rsa" TCPKeepAlive yes
There are tons of identical solutions over the internet for defining proxy tunnel for git’s downloads like this one, which all is by setting git’s https.proxy & http.proxy config. but those answers are not working when you try to clone/push/pull etc. over the ssh protocol!
For example, by setting git config --global https.proxy socks5://127.0.0.1:9999 when you try to clone git clone [email protected]:user/repo.git it does not go through the defined sock5 tunnel!
对于Revert: If the commit reverts a previous commit, it should begin with revert:, followed by the header of the reverted commit. In the body it should say: This reverts commit <hash>., where the hash is the SHA of the commit being reverted.
type的类型有:
feat: A new feature
fix: A bug fix
docs: Documentation only changes
style: Changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons, etc)空白、格式、缺少分号等
refactor:(重构) A code change that neither fixes a bug nor adds a feature
perf: A code change that improves performance
test: Adding missing or correcting existing tests
chore: (琐事)Changes to the build process or auxiliary tools(辅助工具) and libraries such as documentation generation
scope: commit 改变的位置,如果是多处写*
subject: 简明的描述:
使用祈使句,现在时态
不要.结尾
第一个字母不要大写
body: 包括改变的动机,并将其与以前的行为进行对比。
footer: Breaking Changes或者reference GitHub issues that this commit closes. Breaking Changes should start with the wordBREAKING CHANGE: with a space or two newlines. The rest of the commit message is then used for this.
自动生成Release Notes
规范化commit
插件 vscode插件git-commit-plugin
命令行 husky + commitlint
工具
Standard Version
实现自动化版本控制,自动创建changelog, 创建 git tags
安装
1 2 3 4 5 6 7 8 9 10 11
npm cache clean --force #npm指令清除npm缓存 # 删除node_module包 npm install -g npm # npm 更新到最新 npm install -g n n latest # node 更新 Note: the node command changed location and the old location may be remembered in your current shell. old : /usr/bin/node new : /usr/local/bin/node To reset the command location hash either start a new shell, or execute PATH=$PATH" PATH=/usr/local/bin/:$PATH npm install -D standard-version