Git on ZenTao Cloud

2014-12-30 15:28:37
Last edited by Renee on 2019-01-04 10:55:05
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. Click "Console”->"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 netrc to confirm username and password. Windows use _netrc 文件, while Linux use  .netrc. The followings are the way to create netrc.



     1) Add variable HOME in Windows and set the value %USERPROFILE% as follows,


  2) Go to “Start"->"Run” and open %Home%. Create “_netrc”.


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

machine login xxx
password xxx
    xxx is the Git address, user name , password



    Create .netrc on root directory and edit it as

login xxx
password xxx
    xxx is the Git address, user name, 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

    Comment List
    常昕 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 once reviewed.