[root@k8s gitlab]# useradd zhangsan[root@k8s gitlab]# passwd zhangsan
Changing password for user zhangsan.
New password:
BAD PASSWORD: The password fails the dictionary check - it is too simplistic/systematic
Retype new password:
passwd: all authentication tokens updated successfully.
[root@k8s gitlab]# su - zhangsan
2.创建数据存放目录
[zhangsan@k8s ~]$ mkdir-p ~/zhangsan/gitlab
[zhangsan@k8s ~]$ cd zhangsan/gitlab/
[zhangsan@k8s gitlab]$
[zhangsan@k8s gitlab]$ git clone https://192.168.1.8:8443/it-group01/it-items.git
Cloning into 'it-items'...
Username for'https://192.168.1.8:8443': zhangsan
Password for'https://zhangsan@192.168.1.8:8443':
warning: You appear to have cloned an empty repository.
3.进行文件的版本提交系列操作
[zhangsan@k8s gitlab]$ cd it-items/
[zhangsan@k8s it-items]$ gitadd README.md
fatal: pathspec 'README.md' did not match any files
[zhangsan@k8s it-items]$ touch README.md
[zhangsan@k8s it-items]$ gitadd README.md
[zhangsan@k8s it-items]$ git commit -m"1.0-zhangsan carte a file for README.md"[master (root-commit) 9dcfd68]1.0-zhangsan carte a filefor README.md
1file changed, 0 insertions(+), 0 deletions(-)
create mode 100644 README.md
[zhangsan@k8s it-items]$ git log --oneline
9dcfd68 1.0-zhangsan create a filefor README.md