git安装初始化步骤

1、安装步骤

1、下载Git 官方地址为:https://git-scm.com/download/win

git安装初始化步骤

git安装初始化步骤

2、下载完之后,双击安装

git安装初始化步骤

3、选择安装目录

git安装初始化步骤

4、选择组件

git安装初始化步骤

5、开始菜单目录名设置

git安装初始化步骤

6、选择使用命令行环境

git安装初始化步骤

7、以下三步默认,直接点击下一步

git安装初始化步骤git安装初始化步骤git安装初始化步骤

8、安装完成

git安装初始化步骤

9、检验是否安装成功

回到电脑桌面,鼠标右击如果看到有两个git单词则安装成功

git安装初始化步骤

2、git初始化及创建

admin@DESKTOP-SSD49QV MINGW64 /c/sofeware/tools/git/gitRepository (master)
$ git config --global user.name @xie_ji_xing

admin@DESKTOP-SSD49QV MINGW64 /c/sofeware/tools/git/gitRepository (master)
$ git config --global user.email 3062118424@qq.com

admin@DESKTOP-SSD49QV MINGW64 /c/sofeware/tools/git/gitRepository (master)
$ git config --list
diff.astextplain.textconv=astextplain
filter.lfs.clean=git-lfs clean -- %f
filter.lfs.smudge=git-lfs smudge -- %f
filter.lfs.process=git-lfs filter-process
filter.lfs.required=true
http.sslbackend=openssl
http.sslcainfo=C:/sofeware/Git/mingw64/ssl/certs/ca-bundle.crt
core.autocrlf=true
core.fscache=true
core.symlinks=false
credential.helper=manager
user.name=@xie_ji_xing
user.email=3062118424@qq.com
core.repositoryformatversion=0
core.filemode=false
core.bare=false
core.logallrefupdates=true
core.symlinks=false
core.ignorecase=true

admin@DESKTOP-SSD49QV MINGW64 /c/sofeware/tools/git/gitRepository (master)
$ touch 'test11.txt'

admin@DESKTOP-SSD49QV MINGW64 /c/sofeware/tools/git/gitRepository (master)
$ git status
On branch master
Untracked files:
  (use "git add <file>..." to include in what will be committed)
        test.txt
        test11.txt

nothing added to commit but untracked files present (use "git add" to track)

admin@DESKTOP-SSD49QV MINGW64 /c/sofeware/tools/git/gitRepository (master)
$ git add 'test11.txt'

admin@DESKTOP-SSD49QV MINGW64 /c/sofeware/tools/git/gitRepository (master)
$ git status
On branch master
Changes to be committed:
  (use "git restore --staged <file>..." to unstage)
        new file:   test11.txt

Untracked files:
  (use "git add <file>..." to include in what will be committed)
        test.txt

admin@DESKTOP-SSD49QV MINGW64 /c/sofeware/tools/git/gitRepository (master)
$ ssh-keygen -t rsa -C 3062118424@qq.com
Generating public/private rsa key pair.
Enter file in which to save the key (/c/Users/admin/.ssh/id_rsa):
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /c/Users/admin/.ssh/id_rsa
Your public key has been saved in /c/Users/admin/.ssh/id_rsa.pub
The key fingerprint is:
SHA256:4eA92DaWP+fbZURkxvXVRyPvUfSeNYQMU1P/vL/EjL0 3062118424@qq.com
The key's randomart image is:
+---[RSA 3072]----+
|           o++oB%|
|            .o=+@|
|      . .      +B|
|     . * o    .+*|
|      o S      o=|
|       o +    =..|
|          o .. *o|
|           + ..oo|
|            o..Eo|
+----[SHA256]-----+

admin@DESKTOP-SSD49QV MINGW64 /c/sofeware/tools/git/gitRepository (master)
$ cat ~/.ssh/id_rsa.pub
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQDJj0gbjCXcq01GZYVby8xsbfT4ziJho+UEInnR+cwmpwMWULg0Dg4thgIIMRUj9nH9vKCcM5h0BLqSwzGNuhF4LQ3c6odrCiqKVDErpVE/d1ppTfOK/XdLRftv61YUQBStuMxpFWTFNhk4X6Y+Qt8Gqzfr5zLuUyn3B0I5IxxHop4e2VSZ2QBiwIo7OUl1ey8n1xpIlwT4OJl+pjHoMydSnznkfSNatms9gTRNj1aUiphhNpKO9gr7/1U4Ip2YmaV7vDmLNSHBa8F5ibMq9J/zLpznITqa+ffIq4xqnyVgmCh98MeUnX5EPP9hIOj3ng5XIh8ghodU096QYpn6tcwzrqIPHqVnwAgImLoC1QAzVbRMa3OAbZ52etQxf8eJ/0CiosFAbcaNJLAaPCb5J+Bprwoi237FmBpLbzlx84MKOP/0v9w0dGFh72CHqNYWFYhZ91VOm529sz02GutltyJJRwk+PojRdQtcCyCg8JD8verG7t0QDKAHqO4QmzTaG6s= 3062118424@qq.com

admin@DESKTOP-SSD49QV MINGW64 /c/sofeware/tools/git/gitRepository (master)
$ ssh -T git@gitee.com
Hi ! You've successfully authenticated, but GITEE.COM does not provide shell access.



tory (master)
$ ssh -T git@gitee.com
Hi ! You’ve successfully authenticated, but GITEE.COM does not provide shell access.


上一篇:UMLet初学者使用步骤


下一篇:Docker - 安装配置