git checkout android,[Git]checkout 指定版本

48304ba5e6f9fe08f3fa1abda7d326ab.png

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 e24385f84866f0010d3317164b23be9e6054f283

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 41ac93d383abf2e3b83a2df1cd3c201877867d2d

19 Author: lij

20 Date: Mon Apr 24 16:00:15 2017 +0800

21

22 modify the position of calling

23

24 commit 40b81hpc6685c7340106206fa171d0611767d40f93b

25 [root@hpc66-80 ebs]# git checkout e24385f84866f0010d3317164b23be9e6054f283

26 Note: checking out 'e24385f84866f0010d3317164b23be9e6054f283'.

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

48304ba5e6f9fe08f3fa1abda7d326ab.png

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值