当前位置:网站首页 > C++编程 > 正文

git checkout指定版本(git checkout 版本)



 1 [root@hpc66-80 ebs]$ git branch 2 * consistencyCheck 3 master 4 [root@hpc66-80 ebs]# git checkout master 5 Switched to branch 'master' 6 [root@hpc66-80 ebs]# git branch 7 consistencyCheck 8 * master 9 [root@hpc66-80 ebs]# git checkout HEAD 10 [root@hpc66-80 ebs]# git log |more 11 commit e24385f84866f0010db23be9e6054f283 12 Merge: 31d7dc5 41ac93d 13 Author: wa357 <> 14 Date: Wed Apr 26 13:08:11 2017 +0800 15 16 merge modify_election 17 18 commit 41ac93d383abf2e3b83a2df1cd3cd2d 19 Author: lij <> 20 Date: Mon Apr 24 16:00:15 2017 +0800 21 22 modify the position of calling 23 24 commit 40b81hpc6685cfa171d0d40f93b 25 [root@hpc66-80 ebs]# git checkout e24385f84866f0010db23be9e6054f283 26 Note: checking out 'e24385f84866f0010db23be9e6054f283'. 27 28 You are in 'detached HEAD' state. You can look around, make experimental 29 changes and commit them, and you can discard any commits you make in this 30 state without impacting any branches by performing another checkout. 31 32 If you want to create a new branch to retain commits you create, you may 33 do so (now or later) by using -b with the checkout command again. Example: 34 35 git checkout -b new_branch_name 36 37 HEAD is now at e24385f... merge modify_election_datanode_algorithm 38 [root@hpc66-80 ebs]# 39 [root@hpc66-80 ebs]# git branch 40 * (detached from e24385f) 41 consistencyCheck 42 master
到此这篇git checkout指定版本(git checkout 版本)的文章就介绍到这了,更多相关内容请继续浏览下面的相关推荐文章,希望大家都能在编程的领域有一番成就!

版权声明


相关文章:

  • 交换机的console连接线(交换机的console连接线console线的排线方法)2024-12-10 19:27:10
  • dhclient获取不到ip(dhclient获取不到ipv6)2024-12-10 19:27:10
  • junit mock 方法(junit的mock用法)2024-12-10 19:27:10
  • consolidate翻译(Consolidate翻译)2024-12-10 19:27:10
  • pointnet原理(pointnet和cnn)2024-12-10 19:27:10
  • excel合并数组(excel中怎么组合数组)2024-12-10 19:27:10
  • pillow和cushion的区别(pillow和pil区别)2024-12-10 19:27:10
  • xdp是什么意思缩写(xdc是什么意思?)2024-12-10 19:27:10
  • cnn什么意思骂人不带脏字(cnn是什么意思英语)2024-12-10 19:27:10
  • yacc命令未找到(gcc 命令未找到)2024-12-10 19:27:10
  • 全屏图片