2018-06-22 2 分钟 0.2 k0次访问
git
git 常用命令
git 配置代理
1 2 3 4 5
| git config --global http.proxy http://127.0.0.1:58591
git config --global --unset http.proxy
|
查看所有分支
强制删除分支
1
| git branch -D <Your Branch Name>
|
刷新远端分支
1
| git remote update origin --prune
|
git clone 携带用户名密码
1
| git clone https://iamshen:password@remote
|
撤销本地commit
先查看当前分支
提交规范
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
| feat ✨ 引入新功能 fix 🐛 修复 bug style 💄 更新 UI 样式文按键 format 🥚 格式化代码 docs 📝 添加/更新文档 perf 👌 提高性能/优化 init 🎉 初次提交/初始化项目 test ✅ 增加测试代码 refactor 🎨 改进代码结构/代码格式 patch 🚑 添加重要补丁 file 📦 添加新文件 publish 🚀 发布新版本 tag 📌 发布新版本 config 🔧 修改配置文件 git 🙈 添加或修改.gitignore 文件
|