git使用步骤

您所在的位置:网站首页 本地连接断了怎么恢复正常连接 git使用步骤

git使用步骤

2024-07-16 02:58| 来源: 网络整理| 查看: 265

1.连接远程仓库git remote add origin 仓库地址

2.查看远程连接git remote -v

3.git取消与远程仓库的连接git remote remove origin

4.初始化仓库

git init

5.连接新仓库

git remote add origin https://github.com/XXX.git

 

6.检查状态

git status

7.检查分支

git branch

8.创建分支

git checkout br

9.提交到 本地

git add .

10.提交说明

git commit -m “说明"

11.推送到远程分支

git push -u br

12.切换到主分支

git checkout main

13.本地合并

git merge br

14.推送到远程

git  push



【本文地址】


今日新闻


推荐新闻


CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3