成都网站优化,个体工商网上年检,wordpress 网站关键词,wordpress 天气Git软件使用 1.先下载git相关软件 下载地址#xff1a; Git - Downloading Package (git-scm.com)
下载其中一个安装
2.打开gitee网站#xff0c;注册账号 3.打开个人中心#xff0c;选择ssh公钥#xff0c;查看如何生成公钥
4.生成公钥后#xff0c;添加相应的公钥 …Git软件使用 1.先下载git相关软件 下载地址 Git - Downloading Package (git-scm.com)
下载其中一个安装
2.打开gitee网站注册账号 3.打开个人中心选择ssh公钥查看如何生成公钥
4.生成公钥后添加相应的公钥
具体仓库操作
1.第一次提交需要配置账号
或者直接通过终端修改
git config --global user.name 用户名 git config --global user.email 邮箱 git config --global user.password 密码
2.克隆项目到本地 git clone xxxx地址 如果是克隆项目指定分支到本地 git clone -b xxxx分支名称xxxxx地址
3.拉取指定分支更新记住第一次clone之后每次需要更新都是直接运行此命令 git pull origin devlop(远程分支名称) 如果不拉取指定的分支直接 git pull
4.添加修改项 git add .
5.提交 git commit -m “xxx描述”
6.推送 git push 推送到指定分支 git push origin develop
常见问题 1.unable to rewind rpc post data - try increasing http.postBuffer
说明http.postBuffer太小需要设置更大的值 运行以下命令 git config --global http.postBuffer 524288000
2.RPC failed; curl 56 OpenSSL SSL_read: Connection was reset, errno 10054 运行以下命令 git config http.sslVerify “false” git config https.sslVerify “false”
如果继续报错fatal: not in a git directory
需要先运行 git init 在运行 git config http.sslVerify “false” git config https.sslVerify “false”
如果还不行运行下面命令将https提交切换为http提交 git remote set-url origin http://gitee.com/zhangyifen/deal3
3.如果一开始密码配置错误 可以打开windows凭据 控制面板-用户账户-windows凭据
找到git凭据进行修改