GitFirstRemote

1.$ git ls-remote

 


From git@github.com:Smoothfu/WPFITEMSSOURCEPRODUCTCOLLECTION.git
9a6669a2e2c9e22b309fc3c94c43d27affaaeef7 HEAD
5046527222cf7000358cf2a9adc53551f7b13612 refs/heads/FifthBranch
bafece92ef9ef2fdcbda8a45f7feb12c845e8c2f refs/heads/FirstBranch
428048d22297ccf573f540b23e18e4d46460eeee refs/heads/FourthBranch
461e16b5491bb7465dd9b224604701820e6daa40 refs/heads/SECONDBRANCH
85ff43abb3d7baf5920a0d6a8e36cd6f78e91c94 refs/heads/SEcondbranch
06ca7fa7f1e35502a334cae0c72f85dd41e4972a refs/heads/SecondBranch
fd5c8aedb146f2f84c4a170813fa3ea8fcdb407b refs/heads/SixteenBranch
e8a482ccc476eb9664fdb857cac71937a1e0194a refs/heads/THIRDBRANCH
9a6669a2e2c9e22b309fc3c94c43d27affaaeef7 refs/heads/master

 

 

2. $ git push --set-upstream origin firstBranch

Counting objects: 10, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (8/8), done.
Writing objects: 100% (10/10), 1.24 KiB | 0 bytes/s, done.
Total 10 (delta 7), reused 0 (delta 0)
remote: Resolving deltas: 100% (7/7), completed with 7 local objects.
To github.com:Smoothfu/WPFITEMSSOURCEPRODUCTCOLLECTION.git
* [new branch] firstBranch -> firstBranch
Branch firstBranch set up to track remote branch firstBranch from origin.

 

3.git branch -vv

SeventhBranch 418fb89 [origin/SeventhBranch] SeventhBranch Commit
firstBranch 062991d [origin/firstBranch] FirstBranch Commit
master 9a6669a [origin/master] FirstBranchCommit
* sixthbranch 7955e64 [origin/sixthbranch] SixthBranchCommits

$ git ls-remote
From git@github.com:Smoothfu/WPFITEMSSOURCEPRODUCTCOLLECTION.git
9a6669a2e2c9e22b309fc3c94c43d27affaaeef7 HEAD
5046527222cf7000358cf2a9adc53551f7b13612 refs/heads/FifthBranch
bafece92ef9ef2fdcbda8a45f7feb12c845e8c2f refs/heads/FirstBranch
428048d22297ccf573f540b23e18e4d46460eeee refs/heads/FourthBranch
461e16b5491bb7465dd9b224604701820e6daa40 refs/heads/SECONDBRANCH
85ff43abb3d7baf5920a0d6a8e36cd6f78e91c94 refs/heads/SEcondbranch
06ca7fa7f1e35502a334cae0c72f85dd41e4972a refs/heads/SecondBranch
418fb89ed87483bbfe76eb836de2f9e2017b1fd6 refs/heads/SeventhBranch
fd5c8aedb146f2f84c4a170813fa3ea8fcdb407b refs/heads/SixteenBranch
e8a482ccc476eb9664fdb857cac71937a1e0194a refs/heads/THIRDBRANCH
062991dbf26181240e096568621cafb0e9de1bbd refs/heads/firstBranch
9a6669a2e2c9e22b309fc3c94c43d27affaaeef7 refs/heads/master
7955e64ca0276e3957d6488141fb97f6cb3235ff refs/heads/sixthbranch

 

4.

$ git push -u origin HEAD:SecondBranchs
Counting objects: 10, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (8/8), done.
Writing objects: 100% (10/10), 943 bytes | 0 bytes/s, done.
Total 10 (delta 7), reused 0 (delta 0)
remote: Resolving deltas: 100% (7/7), completed with 7 local objects.
To github.com:Smoothfu/WPFITEMSSOURCEPRODUCTCOLLECTION.git
* [new branch] HEAD -> SecondBranchs
Branch SecondBranch set up to track remote branch SecondBranchs from origin.

 

5.

$ git branch -a
EighthBranch
FifthBranch
ForthBranch
* SecondBranch
SeventhBranch
firstBranch
master
sixthbranch
thirdBranch
remotes/origin/EightBranch
remotes/origin/FifthBranch
remotes/origin/FifthBranchs
remotes/origin/FirstBranch
remotes/origin/ForthBranch
remotes/origin/FourthBranch
remotes/origin/HEAD -> origin/master
remotes/origin/SECONDBRANCH
remotes/origin/SEcondbranch
remotes/origin/SecondBranch
remotes/origin/SecondBranchs
remotes/origin/SeventhBranch
remotes/origin/SixteenBranch
remotes/origin/THIRDBRANCH
remotes/origin/firstBranch
remotes/origin/master
remotes/origin/sixthbranch
remotes/origin/thirdBranch

 

posted @ 2017-02-14 23:54  FredGrit  阅读(185)  评论(0编辑  收藏  举报