摘要:push详解git pushgit push -u origingit push --set-upstream origin [branche name] 设置新的分支推送至远端分支git push --all 推送所有的新的分支至远端分支pull详解git pull 拉取远端仓库覆盖本地仓库git
阅读全文
摘要:1新建仓库(1)仓库名字要和用户名一致加上wii110.github.io(2)删除之前的配置仓库git remote remove origin(3)配置现在的仓库名地址git remote add wangwei https://github.com/wii110/newck1.git(4)gi
阅读全文
摘要:git push -u origin master1当本地仓库已经存在commit一次时(1)git remote 查看链接远程仓库状态(2)git remote add origin https://github.com/wii110/newck.git origin可以修改是后面仓库地址的别名,
阅读全文
摘要:git merge [branch name] 切换到需要合并的分支 [branch name]合并的分支名,合并后所有的数据是在当前分支,合并的分支数据不变如何解决合并时发生的冲突git status 查看冲突原因git merage --about 忽略合并,可以在此次合并手动选择合并然后git
阅读全文
摘要:git branch 查看有哪些分支git branch [name] 创建分支git checkout [branch name] 切换分支git checkout -b[branch name]创建分支并切换分支git branch [name] -d 删除分支git branch [name]
阅读全文
摘要:1.配置用户名和邮箱git config --global user.name "wangwei"git config --global user.email "252853297@qq.com"查看配置的用户名和密码 git config --list修改邮箱git config --global
阅读全文