标签:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
$ git branch -a * br-2.1.2.2 master remotes /origin/HEAD -> origin /master remotes /origin/br-2 .1.2.1 remotes /origin/br-2 .1.2.2 remotes /origin/br-2 .1.3 remotes /origin/master |
1
2
3
4
5
|
$ git branch * br-2.1.2.2 master |
1
2
3
4
5
6
7
8
9
10
11
|
shuohailhl@SHUOHAILHL-PC /f/ggg/jingwei (br-2.1.2.2) $ git branch test $ git branch * br-2.1.2.2 master test |
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
shuohailhl@SHUOHAILHL-PC /f/ggg/jingwei (br-2.1.2.2) $ git branch * br-2.1.2.2 master test shuohailhl@SHUOHAILHL-PC /f/ggg/jingwei (br-2.1.2.2) $ git checkout test M jingwei-server /src/main/java/com/taobao/jingwei/server/service/cmd/GetCustomerTarCmd .java M jingwei-server /src/main/java/com/taobao/jingwei/server/util/ServerUtil .java Switched to branch ‘test‘ shuohailhl@SHUOHAILHL-PC /f/ggg/jingwei ( test ) $ git branch br-2.1.2.2 master * test |
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
$ git checkout br-2.1.2.2 M jingwei-server /src/main/java/com/taobao/jingwei/server/service/cmd/GetCustomerTarCmd .java M jingwei-server /src/main/java/com/taobao/jingwei/server/util/ServerUtil .java Switched to branch ‘br-2.1.2.2‘ shuohailhl@SHUOHAILHL-PC /f/ggg/jingwei (br-2.1.2.2) $ git br * br-2.1.2.2 master test shuohailhl@SHUOHAILHL-PC /f/ggg/jingwei (br-2.1.2.2) $ git br -d test Deleted branch test (was 17d28d9). shuohailhl@SHUOHAILHL-PC /f/ggg/jingwei (br-2.1.2.2) $ git br * br-2.1.2.2 master |
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
shuohailhl@SHUOHAILHL-PC /f/ggg/jingwei ( test ) $ git branch -a br-2.1.2.2 master * test remotes /origin/HEAD -> origin /master remotes /origin/br-2 .1.2.1 remotes /origin/br-2 .1.2.2 remotes /origin/br-2 .1.3 remotes /origin/master |
git最详细地址链接: http://www.liaoxuefeng.com/wiki/0013739516305929606dd18361248578c67b8067c8c017b000/001373962845513aefd77a99f4145f0a2c7a7ca057e7570000
标签:
原文地址:http://www.cnblogs.com/jgCho/p/5131048.html