git仓库使用说明

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凭据进行修改

相关推荐
...对方正在输入......23 分钟前
Elasticsearch集群部署实战指南
elasticsearch·jenkins
做萤石二次开发的哈哈31 分钟前
11月27日直播预告 | 萤石智慧台球厅创新场景化方案分享
大数据·人工智能
Hello.Reader1 小时前
使用 Flink CDC 搭建跨库 Streaming ETLMySQL + Postgres → Elasticsearch 实战
大数据·elasticsearch·flink
用户199701080181 小时前
1688图片搜索API | 上传图片秒找同款 | 相似商品精准推荐
大数据·数据挖掘·图片资源
Elasticsearch2 小时前
Elastic AI agent builder 介绍(五)- 备份 tools 及 agents
elasticsearch
武子康2 小时前
大数据-164 Apache Kylin Cuboid 剪枝实战:Derived 维度与膨胀率控制
大数据·后端·apache kylin
梦里不知身是客113 小时前
shuffle过程
大数据
老友記3 小时前
git cherry-pick使用
git
星释3 小时前
Rust 练习册 80:Grains与位运算
大数据·算法·rust