checkout git project
$ git clone git://IP_or_Domain_address/projectName.git
>> Can also be http://IP_or_Domain_address/projectName.git
Cloning into ProjectName...
remote: Counting objects: 13867, done.
remote: Compressing objects: 100% (11779/11779), done.
remote: Total 13867 (delta 2090), reused 13699 (delta 1972)
Receiving objects: 100% (13867/13867), 43.95 MiB | 216 KiB/s, done.
Resolving deltas: 100% (2090/2090), done.
show all the branch/tag in the current repository
$ git ls-remote
From http://IP_or_Domain_address/projectName.git
a99c087c7998b75f8fc662e185b068b52d69b90b HEAD
a99c087c7998b75f8fc662e185b068b52d69b90b refs/heads/master
sync with the latest code from the repository
$ git pull
>> Q. Is there any other command to achieve this purpose?
沒有留言:
張貼留言