![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
git
lenjstlp
记录菜鸟的成长记录...
展开
-
git merge 时,想撤回当前的 git merge 操作
工作中,当我们进行合并代码时,又不想进行合并操作,可以使用 git merge --abort 来放弃当前的合并操作,并将你的工作区恢复到合并前的状态。相当于恢复到了还没进行 "git merge 分支" 操作的时候。原创 2024-04-25 10:52:48 · 252 阅读 · 1 评论 -
git配置个人信息和用户名邮箱
新人到公司第一天先Git设置自己的用户名和邮箱,可以区分代码提交人设置新的用户名和邮箱地址原创 2022-07-03 16:05:36 · 532 阅读 · 0 评论 -
git 命令汇总
初始化本地仓库git init 初始化本地仓库git remote add 别名(origin) 仓库地址 创建远程仓库别名git clone 远程仓库地址 第一次获取代码git 三连git add . 项目文件纳入 git 管理git add * 添加除了 . 开头之外的所有文件git commit -m 'feat: 第一次提交' 提交暂存区代码到本地仓库git push -u 别名(origin) master 第一次 push,会提示 Y/Ngit push原创 2022-04-24 12:54:10 · 174 阅读 · 0 评论 -
git 拉取远程分支到本地
方法一:git checkout -b newBranch origin/newBranch报错:fotal: 'newBranch' is not a commit and a branch 'newBranch' cannot be created from it处理:git fetch方法二:git fetch origin newBranch:newBranch原创 2022-04-24 11:17:41 · 212 阅读 · 0 评论 -
git stash 用法总结
git stash save "message":执行存储,仅用git stash 不方便取出git stash list:查看存储列表git stash apply:应用第一个存储git stash apply stash @stash{1}:应用第二个存储git stash drop stash@{1}:从列表删除第二个存储git stash clear:删除所有存储git stash show:显示第一个存储的改动git stash show stash@{1}:显示第二个原创 2022-01-14 20:07:51 · 294 阅读 · 0 评论 -
git 删除本地分支报错提示,需强制删除
git 删除本地分支操作提示"the branch 'dev20220318' is not fully merged"error: The branch 'dev20220318' is not fully merged.If you are sure you want to delete it, run 'git branch -D dev20220318'.继续操作如下命令即可,强制删除本地分支git branch -D dev20220318...原创 2022-03-18 11:29:49 · 1195 阅读 · 0 评论