After preparing:
git clone
$ git clone http://username01@172.16.10.25/testgrp/testpj.git Cloning into 'testpj'... warning: You appear to have cloned an empty repository. $ ls testpj $ cd testpj/
setting user info:
$ git config user.name username01 $ git config user.email <mail address>
prepare sample file “README.md”
$ vi README.md $ cat README.md Test Message: hello Gitlab! $
git commit and push
$ git status On branch master Your branch is up-to-date with 'origin/master'. Changes not staged for commit: (use "git add <file>..." to update what will be committed) (use "git checkout -- <file>..." to discard changes in working directory) modified: README.md no changes added to commit (use "git add" and/or "git commit -a") $ git commit -a -m "test commit" [master 7ee70bd] test commit 1 file changed, 1 insertion(+) $ git push -u origin master Counting objects: 3, done. Writing objects: 100% (3/3), 249 bytes | 0 bytes/s, done. Total 3 (delta 0), reused 0 (delta 0) To http://172.16.10.25/testgrp/testpj.git * [new branch] master -> master Branch master set up to track remote branch master from origin. $
for example: