一、常用命令
1、git init : 新建仓库
2、git add 文件名
3、git commit -m “备注”
4、git status 与 git diff
6、git log 与 git reflow
7、git pull 拉取代码
8、git push 推送代码
9、git reset --hard 与 git cherry-pick
10、git checkout与git 分支
合并分支流程
1.git add .
2.git commit -m ""
3.git checkout develop(切换到要合并的分支)
4.git pull(拉取最新的代码)
5.git merge dkxcode(合并分支,develop + "自己的分支名")
6.git push
git常用指令
git branch => 显示本地所有分支
git branch -d "分支名" => 删除分支
git branch "分支名" => 创建分支
git checkout -b "分支名" => 创建新分支并切换到新分支
git log => 查看提交历史
git clone => 克隆远程
git init => 初始化仓库
git pull origin develop => 在自己的分支拉取develop的代码