git 使用
1、初始化git身份信息
$ git config --global user.name '用户名'
$ git config --global user.email '1506537034@qq.com'
2、clone项目
$ git clone https://github.com/aba6/test.git
3、报错提示
fatal: unable to access ‘github.com/aba6/test.git/': OpenSSL SSL_connect: SSL_ERROR_SYSCALL in connection to github.com:443
解决:
将https://github.com/aba6/test.git/改为git://github.com/aba6/test.git/
4、将文件提交到暂存区
1、cd到项目更目录
$ cd test
2、提交
$ git add .
5、提交到远程仓库
1、添加注释
$ git commit -m "测试注释"
2、push提交
$ git push
6、本地项目与线上同步
$ git pull
本作品采用《CC 协议》,转载必须注明作者和本文链接