root % git clone https://gitlab.halfcoffee.com/root/blog.git
Cloning into 'blog'...
Username for 'https://gitlab.halfcoffee.com':
Password for 'https://@gitlab.halfcoffee.com':
remote: Enumerating objects: 34, done.
remote: Total 34 (delta 0), reused 0 (delta 0), pack-reused 34
Unpacking objects: 100% (34/34), done.
修改一个文件进行提交测试:
# cd blog
# date > date.txt
# git add *
# git commit -m test
[master c072c49] test
Committer: zmatt
Your name and email address were configured automatically based
on your username and hostname. Please check that they are accurate.
You can suppress this message by setting them explicitly. Run the
following command and follow the instructions in your editor to edit
your configuration file:
git config --global --edit
After doing this, you may fix the identity used for this commit with:
git commit --amend --reset-author
1 file changed, 1 insertion(+)
create mode 100644 date.txt
# git push ssh://:10022/root/blog.git
Enumerating objects: 4, done.
Counting objects: 100% (4/4), done.
Delta compression using up to 8 threads
Compressing objects: 100% (2/2), done.
Writing objects: 100% (3/3), 292 bytes | 97.00 KiB/s, done.
Total 3 (delta 1), reused 0 (delta 0)
To ssh://gitlab.halfcoffee.com:10022/root/blog.git
411e1ab..c072c49 master -> master