随笔分类 -  Git

摘要:6、多人协作 git remote 查看远程库的信息 git remote -v 显示更详细的信息 git push origin <branch-name> 推送分支 git pull 抓取分支 git branch --set-upstream-to <branch-name> origin/< 阅读全文
posted @ 2021-08-13 13:43 大洋Blog 阅读(31) 评论(0) 推荐(0)
摘要:1、创建和合并分支 查看分支:git branch 创建分支:git branch <name> 切换分支:git checkout <name>或者git switch <name> 创建+切换分支:git checkout -b <name>或者git switch -c <name> 合并某分 阅读全文
posted @ 2021-08-12 16:52 大洋Blog 阅读(136) 评论(0) 推荐(0)
摘要:1、添加远程仓库 git remote add origin 2、从远程仓库克隆 git clone 阅读全文
posted @ 2021-08-12 09:59 大洋Blog 阅读(36) 评论(0) 推荐(0)
摘要:1、创建版本库 git init 注意点: ①windows系统目录名不包含中文 ②windows系统不要用自带的记事本编辑任何文本文件 git add git commit 2、版本回退 git reset --hard HEAD^(回到上一个版本) git reset --hard 版本号id 阅读全文
posted @ 2021-08-11 18:10 大洋Blog 阅读(23) 评论(0) 推荐(0)