1. git的框架
pull: 拉取 fetch 拿来 merge合并
push:推动
2. Windows下git的使用
(1)git原生
(2)tortoise git
下载地址:
https://tortoisegit.org/download/
- windows下面的工具:
- git框架
生成SSH秘钥
$ ssh-keygen -t rsa
wenhao@wenhao MINGW64 /f/code/Git_repositorys/res1 (master)
$ git remote add origin git@github.com:wenhao18/repo1-20210508.git
wenhao@wenhao MINGW64 /f/code/Git_repositorys/res1 (master)
$ git branch -M main
wenhao@wenhao MINGW64 /f/code/Git_repositorys/res1 (main)
$ git push -u origin main
…or create a new repository on the command line
echo "# repository_20210508" >> README.md
git init
git add README.md
git commit -m "first commit"
git branch -M main
git remote add origin https://github.com/wenhao18/repository_20210508.git
git push -u origin main
…or push an existing repository from the command line
git remote add origin https://github.com/wenhao18/repository_20210508.git
git branch -M main
git push -u origin main
$ git remote add origin https://github.com/wenhao18/repository_20210508.git
wenhao@wenhao MINGW64 /f/code/Git_repositorys/res2 (main)
$ git add
Nothing specified, nothing added.
hint: Maybe you wanted to say 'git add .'?
hint: Turn this message off by running
hint: "git config advice.addEmptyPathspec false"
wenhao@wenhao MINGW64 /f/code/Git_repositorys/res2 (main)
$ git add .
warning: LF will be replaced by CRLF in README.md.
The file will have its original line endings in your working directory
wenhao@wenhao MINGW64 /f/code/Git_repositorys/res2 (main)
$ git commit ./
[main 2287760] 本次增加新的工程!
1 file changed, 310 insertions(+)
create mode 100644 new 1.c
wenhao@wenhao MINGW64 /f/code/Git_repositorys/res2 (main)
$
错误github|fatal:unable to access|OpenSSL SSL_connect: SSL_ERROR_SYSCALL in connection to github.co...
以后叫我老牛关注
0.2172018.11.14 08:57:00字数 334阅读 14,892
在intellij或者android Studio 使用git clone命令,无法clone成功,出现github|fatal:unable to access|OpenSSL SSL_connect: SSL_ERROR_SYSCALL in connection to github.com 443 字段,我遇到过,下面是我的解决过程。
额,首先,我也不是什么大牛,我就将intellij和android Studio的报错cp下来,是的,就这个很重要,如下截取的报错内容:unable to access 'https://github.com/yuanlunchuan/spring4Angular.git/': OpenSSL SSL_connect: SSL_ERROR_SYSCALL in connection to github.com:443,很明显地,我在如果这么直接百度,是很难找到答案的。
原因就是百度的检索功能,git地址是我自己的,这个占这个搜索比重很大,所以必须将其剔除,变成这样unable to access 'https://github.com/': OpenSSL SSL_connect: SSL_ERROR_SYSCALL in connection to github.com:443.因此我按照这个所搜,多看几篇,发现共同点就是,都是一样的解决思路,那么这个方案就是可行的,搞定。
在查询到,解决的关键因素就是http.sslVerify 的配置需要设置为false 这个好办,因为不同的前辈有不同的解决方式,我的就直接打开git bash, 敲命令"git config --global http.sslVerify false" 搞定。
7人点赞