一、下拉项目
放弃本地修改,直接覆盖
git reset --hard
git pull
保留本地修改
git stash
git pull
git stash pop
二、克隆项目
只克隆项目的一个分支
git clone -b 分支名称 项目链接
git reset --hard
git pull
git stash
git pull
git stash pop
git clone -b 分支名称 项目链接
本文标题:git 常用命令笔记
本文链接:https://www.haomeiwen.com/subject/lynnvxtx.html
网友评论