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 -a 

强制删除分支

1
git branch -D <Your Branch Name>

刷新远端分支

1
git remote update origin --prune

git clone 携带用户名密码

1
git clone https://iamshen:password@remote

撤销本地commit

先查看当前分支

1
git reset HEAD~ 

提交规范

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 文件
发布于

2018-06-22

更新于

2022-01-11

许可协议

# 推荐文章
  1.PostgreSQL
  2.elasticsearch
  3.防火墙
  4.git
  5.https证书
  6.jenkins

:D 一言句子获取中...