随笔分类 -  GIT

GIT source controller
摘要:使用TortoiseGit,设置ssh方式连接git仓库。 开始设置之前的准备:建立项目文件夹,初始化git仓库(右键 git init),右键打开 git bash ,git pull “仓库地址”, 把网站上的仓库代码拉取下来。 TortoiseGit使用扩展名为ppk的密钥,而不是ssh-ke 阅读全文
posted @ 2022-05-27 17:39 horsetail 阅读(591) 评论(0) 推荐(0)
摘要:GITLAB 阅读全文
posted @ 2018-08-09 17:33 horsetail 阅读(789) 评论(0) 推荐(0)
摘要:清除本地修改 拉代码 Git Pull While Ignoring Local Changes? git pull 并强制覆盖本地修改 git pull 并强制覆盖本地修改 阅读全文
posted @ 2017-08-18 10:55 horsetail 阅读(3440) 评论(0) 推荐(0)
摘要:参考资料: [1].Git学习笔记:fork和clone的区别,fetch与pull的区别 [2].在Github和Git上fork之简单指南 阅读全文
posted @ 2017-06-14 11:47 horsetail 阅读(701) 评论(0) 推荐(0)
摘要:常用命令 1.新分支 创建新分支:git branch <branch_name> 创建分支并切换到新的分支上:git checkout -b <branch_name> 2.切换到新分支:git checkout <branch_name> 3.回滚版本:git reset –hard commi 阅读全文
posted @ 2017-06-02 10:13 horsetail 阅读(309) 评论(0) 推荐(0)
摘要:1、git pull出现的合并问题: Please enter a commit message to explain why this merge is necessary,especially if it merges an updated upstream into a topic branc 阅读全文
posted @ 2016-03-01 10:43 horsetail 阅读(446) 评论(0) 推荐(0)
摘要:最近一直使用者GIT发现使用起来确实很不错,最近做些整理总结,发现了一些很不错的资料,收集在这里,以备忘。 GIT入门挺简单的,之前有些过一篇文章,关于GIT的,但是都是一些生硬的操作,并没有系统的学习和使用它。最近的一些经验告诉我,一不要畏惧新事物,只要坚持学习和包容它,不断的突破难点和重点,随着 阅读全文
posted @ 2016-01-31 10:28 horsetail 阅读(301) 评论(0) 推荐(0)
摘要:1、第一次下载代码 a、首先获得下载的地址,可从服务器,或者GitHut上获得。例如http://100.211.1.110:21/test/test.git b、终端里切换到想要将代码存放的目录,在终端执行命令 2、更新代码,即服务器代码更新到本地a、到项目所在的目录 b、执行命令 3、上传代码到 阅读全文
posted @ 2015-12-01 15:00 horsetail 阅读(1924) 评论(0) 推荐(0)