2021/4/10

git 本地分支更新

首先取决于你是否想要保存本地修改。(是 /否) 是     git stash       git pull origin master       git stash pop   git stash的时候会把你本地快照,然后git pu…

  • github
  • 2021/4/10
  • 1,002
  • 2020/9/9

    简易的命令行入门教程:

    简易的命令行入门教程: Git 全局设置: git config --global user.name "何雷" git config --global user.email "15282795246@163.com" 创建 git 仓库: mkdir test cd test git init touch READ…

  • github
  • 2020/9/9
  • 970
  • 2020/9/7

    git 本地与远程仓库同步操作

    git fetch  从远程仓库下载本地仓库中缺失的提交记录 更新远程分支指针(假设为 o/master) git fetch 实际上将本地仓库中的远程分支更新成了远程仓库相应分支最新的状态: git fetch 并不会改变你本地仓库的…

  • github
  • 2020/9/7
  • 1,036
  • 2020/8/10

    git提交操作

    git add README.md git commit -m "first commit" git remote add origin  xxxx git push -u origin master

  • github
  • 2020/8/10
  • 696
  • 2020/8/9

    fatal: unable to access ‘https://gitee.com/hl1064974123/MyUniShop.git/’: error setting certificate verify locations: CAfile: D:\installation\Git\mingw64\ssl\certs\ca-bundle.crt CApath: none

    查看所述目录文件是否存在,不存在重新安装git或者 git config --system http.sslverify false

  • github
  • 2020/8/9
  • 612
  • 2020/8/3

    git提交操作

    git add [filename] git commit -m "1.0.1" git push

  • github
  • 2020/8/3
  • 719
  • 2020/8/3

    ! [rejected] master -> master (non-fast-forward) error: failed to push some refs to ‘https://github.com/hl1064974123/cms-iframe.git’ hint: Updates were rejected because the tip of your current branch is behind hint: its remote counterpart. Integrate the remote changes (e.g. hint: ‘git pull …’) before pushing again. hint: See the ‘Note about fast-forwards’ in ‘git push –help’ for details.

    1、git pull origin master --allow-unrelated-histories //把远程仓库和本地同步,消除差异 2、重新add和commit相应文件 3、git push origin master 4、此时就能够上传成功了

  • github
  • 2020/8/3
  • 581