随笔分类 -  git的使用

摘要:git切换分支 首先通过 $ git branch -a 来查看所在目录的分支 $ git branch -a master * trunk remotes/origin/HEAD -> origin/master remotes/origin/master remotes/origin/zhang 阅读全文
posted @ 2021-04-28 10:50 sundayswift 阅读(226) 评论(0) 推荐(0)
摘要:Git合并指定文件到另一个分支 经常被问到如何从一个分支合并特定的文件到另一个分支。其实,只合并你需要的那些commits,不需要的commits就不合并进去了。 合并某个分支上的单个commit 首先,用git log或sourcetree工具查看一下你想选择哪些commits进行合并,例如: 比 阅读全文
posted @ 2020-12-16 20:36 sundayswift 阅读(275) 评论(0) 推荐(0)
摘要:lz目前在整远程仓库。使用的https提交,在Git Bash 中经过一系列命令 报错remote: Invalid username or password fatal: Authentication failed for 'https://github.com/ ... 百度了解决方案,说是重新 阅读全文
posted @ 2020-11-29 20:41 sundayswift 阅读(757) 评论(0) 推荐(0)
摘要:常用git stash命令: (1)git stash save "save message" : 执行存储时,添加备注,方便查找,只有git stash 也要可以的,但查找时不方便识别。 (2)git stash list :查看stash了哪些存储 (3)git stash show :显示做了 阅读全文
posted @ 2020-08-03 16:54 sundayswift 阅读(2095) 评论(0) 推荐(0)
摘要:https://blog.csdn.net/u010312474/article/details/90261496 Git 分为哪几个区:https://blog.csdn.net/qq_36672905/article/details/82776283Git的区域分为 工作区、暂存区、本地仓库区 阅读全文
posted @ 2020-08-03 16:14 sundayswift 阅读(362) 评论(0) 推荐(0)
摘要:相关git命令操作 https://www.cnblogs.com/sundaysandroid/p/13441529.html 1.在命令行中,输入“git init”,使Test文件夹加入git管理;2.输入“git add .”(不要漏了“.”),将Test文件夹全部内容添加到git。3.输入 阅读全文
posted @ 2019-05-21 17:38 sundayswift 阅读(242) 评论(0) 推荐(0)