Git on ZenTao Cloud

2014-12-30 15:28:37
Last edited by Taotao on 2020-03-20 11:12:23
Summary : This article is about how to use ZenTao Cloud Git hosting.

ZenTao Cloud has GIT hosting service. Read the instruction below to use it.

1. Go to your account and click "Manage Git".

Fill in your GIT admin user name and password, and click "Start(Open)".

Then GIT will be available within one minute. The default setting is this admin had privileges to read and write all repositories on this site.

2. Create netrc

     In repository, Git use the netrc file to confirm username and password. Windows use _netrc , while Linux use  .netrc. The followings are about how to create netrc.



     1) Go to “Start"->"Run” and open %USERPROFILE%. Create “_netrc” file.

     2) Open _netrc in Notebook and enter Git server name, user name, password , and Save. For example,

machine login xxx
password xxx
    xxx is your Git address, user name , and password.



    Create .netrc on root directory and edit it as

login xxx
password xxx
    xxx is your Git address, user name, and password.


3. Create a branch

 In Linux, run the followings,

#initialize repository 
mkdir test  
cd test
git init
#create readme and add to local
touch readme
git add readme
git commit
#add git origin and push to master
git remote add origin
git push origin master

If error: failed to push some refs to '', check whether netrc is created in the right way.


4. Testing

Clone Git repository:

git clone other

Check whether it is cloned.


Synchronization steps:

git fetch origin

git merge origin/master

常昕 2016-11-11 13:42:57
王春生 2016-11-15 09:04:09
张海阳 2016-10-19 18:18:51
王春生 2016-10-26 09:00:00
Write a Comment
Comment will be posted after it is reviewed.