关于git checkout版本
来源:互联网 发布:网络空间拟态防御理论 编辑:程序博客网 时间:2024/05/09 01:32
andy@AndyMacBookPro:/usr/local/webdata/andy/js/jquery$ git checkout 1.8.3Note: checking out '1.8.3'.You are in 'detached HEAD' state. You can look around, make experimentalchanges and commit them, and you can discard any commits you make in thisstate without impacting any branches by performing another checkout.If you want to create a new branch to retain commits you create, you maydo so (now or later) by using -b with the checkout command again. Example: git checkout -b new_branch_nameHEAD is now at 869704b... Include distribution in release tag
然后我看到有一大堆输出,以为错了,就没有细看,直接使用了这个命令:
andy@AndyMacBookPro:/usr/local/webdata/andy/js/jquery$ git checkout -b 2.1.1Switched to a new branch '2.1.1'andy@AndyMacBookPro:/usr/local/webdata/andy/js/jquery$ git branch -a 1.2.6 1.3 1.8.0* 2.1.1 master remotes/origin/1.11-stable remotes/origin/1.x-master remotes/origin/2.1-stable remotes/origin/HEAD -> origin/master remotes/origin/compat remotes/origin/master remotes/origin/standard-then remotes/origin/standard-then-tests remotes/origin/standard-then-tests-fixedandy@AndyMacBookPro:/usr/local/webdata/andy/js/jquery$
然后结果就是上面这样了,当然,我现在知道问题在哪里了。。。哈哈,git checkout 1.2.6,就是将版本切换到1.2.6这个Tag,我们可以看下jquery的tag:
andy@AndyMacBookPro:/usr/local/webdata/andy/js/jquery$ git tag1.01.0.11.0.21.0.31.0.41.0a1.11.1.11.1.21.1.31.1.3.11.1.3a1.1.41.10.01.10.0-beta11.10.11.10.21.11.01.11.0-beta11.11.0-beta21.11.0-beta31.11.0-rc11.11.11.11.1-beta11.11.1-rc11.11.1-rc21.11.21.1a1.1b1.21.2.11.2.21.2.2b1.2.2b21.2.31.2.3a1.2.3b1.2.41.2.4a1.2.4b1.2.51.2.61.31.3.01.3.11.3.1rc11.3.21.3b11.3b21.3rc11.41.4.01.4.11.4.21.4.31.4.3rc11.4.3rc21.4.41.4.4rc11.4.4rc21.4.4rc31.4a11.4a21.4rc11.51.5.01.5.11.5.1rc11.5.21.5.2rc11.5b11.5rc11.61.6.01.6.11.6.1rc11.6.21.6.2rc11.6.31.6.3rc11.6.41.6.4rc11.6b11.6rc11.71.7.01.7.11.7.1rc11.7.21.7.2b11.7.2rc11.7b11.7b21.7rc11.7rc21.8.01.8.11.8.21.8.31.8.3+11.8b11.8b21.8rc11.9.01.9.0b11.9.0rc11.9.12.0.02.0.0-beta32.0.0b12.0.0b22.0.12.0.22.0.32.1.02.1.0-beta12.1.0-beta22.1.0-beta32.1.0-rc12.1.12.1.1-beta12.1.1-rc12.1.1-rc22.1.22.1.3andy@AndyMacBookPro:/usr/local/webdata/andy/js/jquery$
其中git checkout可以切换到version,也可以切换到tag。
而那个git checkout -b,是指在本地创建分支。。。我傻乎乎的去创建了分支,结果git branch -a,就看到了本地有这么多版本。
0 0
- 关于git checkout版本
- git checkout某一版本不需要全名字
- 在 Git 中 Checkout 历史版本
- git checkout到历史某个版本
- git checkout
- Git checkout
- git checkout
- git checkout
- git checkout
- git checkout
- git# checkout
- git checkout
- git checkout
- git checkout .
- git checkout
- git checkout
- Github版本控制与git checkout命令的使用
- Github版本控制与git checkout命令的使用
- 基于java的分布式爬虫
- 平台注册加入微信验证码机制。
- FTP的Response含义
- c++指针(1)-规避野指针
- Impala ——架构分析
- 关于git checkout版本
- MVC 3 数据验证 Model Validation 详解
- Java复习笔记3
- Android 自定义View (四) 视频音量调控
- ActiveMQ在C#中的应用
- IIS7 ASP Setting support 32 bit application,error number=3704
- Button样式设计 圆角、实心、渐变、描边
- 每天一个linux命令(2):文件权限详解
- 嵌入式Linux下基于FFmpeg的视频硬件编解码[图]