随笔分类 -  git.github.gitlab笔记

git.github.gitlab笔记
六多人协同开发
摘要:push详解git pushgit push -u origingit push --set-upstream origin [branche name] 设置新的分支推送至远端分支git push --all 推送所有的新的分支至远端分支pull详解git pull 拉取远端仓库覆盖本地仓库git 阅读全文

posted @ 2021-08-09 17:12 小小小传说 阅读(33) 评论(0) 推荐(0) 编辑

主仓库作为服务器
摘要:1新建仓库(1)仓库名字要和用户名一致加上wii110.github.io(2)删除之前的配置仓库git remote remove origin(3)配置现在的仓库名地址git remote add wangwei https://github.com/wii110/newck1.git(4)gi 阅读全文

posted @ 2021-08-09 17:10 小小小传说 阅读(58) 评论(0) 推荐(0) 编辑

本地仓库推送到远端仓库
摘要:git push -u origin master1当本地仓库已经存在commit一次时(1)git remote 查看链接远程仓库状态(2)git remote add origin https://github.com/wii110/newck.git origin可以修改是后面仓库地址的别名, 阅读全文

posted @ 2021-08-09 17:10 小小小传说 阅读(70) 评论(0) 推荐(0) 编辑

6合并分支
摘要:git merge [branch name] 切换到需要合并的分支 [branch name]合并的分支名,合并后所有的数据是在当前分支,合并的分支数据不变如何解决合并时发生的冲突git status 查看冲突原因git merage --about 忽略合并,可以在此次合并手动选择合并然后git 阅读全文

posted @ 2021-08-09 17:10 小小小传说 阅读(38) 评论(0) 推荐(0) 编辑

5建立切换删除分支
摘要:git branch 查看有哪些分支git branch [name] 创建分支git checkout [branch name] 切换分支git checkout -b[branch name]创建分支并切换分支git branch [name] -d 删除分支git branch [name] 阅读全文

posted @ 2021-08-09 17:09 小小小传说 阅读(18) 评论(0) 推荐(0) 编辑

git.github.gitlab(1)
摘要:1.配置用户名和邮箱git config --global user.name "wangwei"git config --global user.email "252853297@qq.com"查看配置的用户名和密码 git config --list修改邮箱git config --global 阅读全文

posted @ 2021-08-03 17:35 小小小传说 阅读(23) 评论(0) 推荐(0) 编辑

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

导航

统计

点击右上角即可分享
微信分享提示