github
fatal: unable to access 'github.com/dannycx/XLi…': Failed to connect to github.com port 443 after 21081 ms: Timed out
git config --global --unset http.proxy 取消代理
git config --global --unset https.proxy 取消https代理
fatal: unable to access 'github.com/dannycx/XLib.git/': SSL certificate problem: unable to get local issuer certificate
git config --global http.sslVerify false
github命令
-
git add . 添加文件
-
git commit -m "提交文件"
-
git push 合并至master
-
git push -u origin master 合并至master
-
git push origin HEAD:refs/for/master
-
git config --global -l 查看当前配置
-
git config --global --unset http.proxy 取消代理
-
git remote rm origin 之前仓报错,删除一下
-
git remote add origin github.com/X 关联自己github项目
-
git config --global http.sslVerify false 取消SSL校验
-
git config --global user.name "dannycx" 用户名
-
git config --global user.email "xxx@xx.com" 邮箱
github SSH
- 生成密钥
ssh -keygen -t rsa -C "xxx@xx.com"
- 找到密钥文件:c:\用户\xx.ssh
复制id_rsa文件内容
- 登录github添加SSH key
github/settings
github创建Android项目
- 登录github新建项目
- Android Studio新建项目
- Git Bash进入项目根目录
- git clone github.com/dannycx/XXX…
- 项目根目录下出现XXX文件夹,进入XXX,ls -al查看所有文件,将所有文件复制到项目根目录,同名文件直接覆盖(注意:.git为隐藏文件,也需复制)
- 删除根目录下的XXX文件夹
- 完活