0
点赞
收藏
分享

微信扫一扫

git常用命令

唯米天空 2022-01-24 阅读 98
gitgithub

git常用命令

//克隆
clone --branch master https file
//查看当前分支
git branch
//查看所有分支
git branch -la
//拉取远程分支
fetch origin
//创建分支
git branch 分支名
//切换分支
git checkout 分支名
//删除分支
branch -D 分支名
//丢弃文件
Git reset -q HEAD – file file
Git checkout HEAD – file file

举报

相关推荐

0 条评论