shell - vscode
$ mkdir 00.Gitlab
$ cd 00.Gitlab/
$ ssh-key
ssh-keygen ssh-keyscan
$ ssh-keygen -t rsa
$ cat .ssh/id_rsa.pub
$ cd 00.Gitlab/
$ git clone git@192.168.*:*/testone.git
正克隆到 'testone'...
The authenticity of host...
$ ps -u * f
$ alias "rf=readlink -f"
$ rf ./testone/
$ find ~/ -name vscode-server.tar.gz | xargs du -sh
$ cat main.py
$ cd testone/
$ git status
位于分支 main
您的分支与上游分支 'origin/main' 一致。
未跟踪的文件:
(使用 "git add <文件>..." 以包含要提交的内容)
main.py
提交为空,但是存在尚未跟踪的文件(使用 "git add" 建立跟踪)
$ git add main.py
$ git status
位于分支 main
您的分支与上游分支 'origin/main' 一致。
要提交的变更:
(使用 "git restore --staged <文件>..." 以取消暂存)
新文件: main.py
$ git commit -m "初始提交:main程序,commit详细信息"
$ git config --global --add user.name *
$ git config --global --add user.email *@qq.com
$ git config -l
user.name=*
user.email=*@qq.com
core.repositoryformatversion=0
core.filemode=true
core.bare=false
core.logallrefupdates=true
remote.origin.url=git@192.168.*:*/testone.git
remote.origin.fetch=+refs/heads/*:refs/remotes/origin/*
branch.main.remote=origin
branch.main.merge=refs/heads/main
$ git config --global credential.helper store