Git 常用命令以及解释

58 阅读1分钟
  1. 初始化 git init

2.克隆 git clone 仓库地址

3.链接远程仓库 git remote add origin 仓库地址

  1. 创建分支 并切换到该分支 git checkout -b 分支名 origin/分支名

5.添加到缓存区 git add

6.提交到仓库 git commit -m '注释'

7.推送到远程仓库 git push origin 分支名