随笔分类 -  git study

how to use git
摘要: 阅读全文
posted @ 2016-04-13 22:16 johnny_shi 阅读(110) 评论(0) 推荐(0)
摘要:参考 http://blog.csdn.net/dijason/article/details/9042425查看分支:1 查看本地分支:$ git branch2 查看远程分支$ git branch -r创建分支:1 创建本地分支(建立分支后,仍停留在当前分支,切换分支:git checkout... 阅读全文
posted @ 2015-10-29 14:42 johnny_shi 阅读(304) 评论(0) 推荐(0)
摘要:如果不小心增加了一个最新的提交,可以通过以下的操作删除,记住:是删除最新的提交,如果回滚到其他的提交上面,就会导致之后的全部消失。 1.git reset --hard HEAD~1 2.git push --force 阅读全文
posted @ 2015-07-17 17:23 johnny_shi 阅读(1213) 评论(0) 推荐(0)
摘要:1. 直接下载分支,就不用下载不需要的源码了。git clone --depth 1 git://github.com/TI-OpenLink/wl18xx.git --branch ol_r8.a7.01 -b --single-branc2.在github下载时觉得慢就把git://换成http... 阅读全文
posted @ 2015-07-09 10:42 johnny_shi 阅读(1441) 评论(0) 推荐(0)
摘要:gitbranch 本地分支gitbranchtest 创建分支 git pull origin fastboot 更新到最新版本 git branch -a 查看所有的分支,包括本地的和远程的git checkout remotes/origin/x 把那个想要下载的分支下载下来 已经有的就切换... 阅读全文
posted @ 2015-06-24 16:17 johnny_shi 阅读(782) 评论(0) 推荐(0)
摘要:下载 git clone ***(地址)上传 1. 先注册一个github账号2.在github网站上建设一个工程3. 把想要上传的数据上传到网站去1 git config --global user.name "Your Real Name" 2 git config --global user... 阅读全文
posted @ 2015-04-16 17:15 johnny_shi 阅读(310) 评论(0) 推荐(0)