随笔分类 -  Git

Git 常用方法
代码回滚操作
摘要:code_version 分支始终保持与master同步 1.简单一次的提交回滚: 在code_version分支上, git revert 版本号 # 撤销此次提交修改的代码,版本号更新 git commit . -m "撤销" # 生成新的版本号 2.提交多次的代码回滚: 在code_versi 阅读全文

posted @ 2020-03-10 19:55 星河赵 阅读(1172) 评论(0) 推荐(0) 编辑

设置全局git忽略文件 gitconfig
摘要:1.查看git 全局配置 cat ~/.gitconfig 若配置为空加入以下内存 [user] email = zhaoyingjie@liquidnetwork.com name = zhaoyingjie [core] #全局忽略文件地址 excludesfile = /Users/zyj/D 阅读全文

posted @ 2018-12-01 15:04 星河赵 阅读(856) 评论(0) 推荐(0) 编辑

git 常用命令以及解决问题方法
摘要:1. 创建分支: git branch test 2.切换分支: git checkout test 或切换为主分支 git checkout master 3.查看当前分支 git branch -va 4. 如:当前分支为test 要合并dev分支 git merge dev 后确保没问题 切换 阅读全文

posted @ 2018-04-08 18:18 星河赵 阅读(293) 评论(0) 推荐(0) 编辑

导航

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5
点击右上角即可分享
微信分享提示