程序员的资源宝库

网站首页 > gitee 正文

git本地仓库连接gitee远程仓库 git本地仓库和远端关联

sanyeah 2024-03-29 14:45:02 gitee 9 ℃ 0 评论

1.1 准备

git 直接官网下

gitee 注册一下

1.2 配置

gitee

新建仓库

image-20220602203243455

image-20220602203353097


git

在d盘下新建一个仓库文件夹

image-20220602203635660

设置git用户和邮箱

image-20220602203505031

初始化后,看到目录下多了个文件

image-20220602203522702

image-20220602203557513

然后就可以开始使用了


1.3 基本操作

克隆

image-20220602203743131

image-20220602203800297

克隆成功

image-20220602203812470


拉取和推送

拉取


git remote add origin xxx
git pull origin master
git add xxx
git commit -m xxx
git push -u origin master

image-20220602203825499

更改,这里添加一个文本文件image-20220602203842191

image-20220602203857295

image-20220602203908580

推送image-20220602203922609

image-20220602203935371

问题:如果弹出登录窗口,就输入git用户和邮箱即可

踩坑完毕

OK.??

Tags:

本文暂时没有评论,来添加一个吧(●'◡'●)

欢迎 发表评论:

最近发表
标签列表