git一些总结(自用)
发布日期:2021-05-14 09:16:01 浏览次数:18 分类:精选文章

本文共 1572 字,大约阅读时间需要 5 分钟。

������ GitHub ������������������������

������Push ��� GitHub ���������������������

������������������������ GitHub ������������������������������"Push ��� origin/master ���������"������������������������������������������������������������

  • ������ Git ������������

    ������������������������������������������������������������������������������������������������������������������

    git pull origin master ���allow-unrelated-histories
  • ������������������������

    ���������������������������������������������������������������

    git push -u origin master -f
    • ��������-f ������������������������������������������
  • ������������������������������

    ������������������������������������������������������������������������������������

  • ������������������������

    Update Git ���������������������

    git remote set-url origin https://username@your/gitrepo.git
  • ������������������������

    ���������������������������������������������origin������������

    git remote rm origin
  • ���������������������

    ���������������������������������

    git remote add origin https://username@your/gitrepo.git
  • ������ Git ������

    ��������������������������������������� Git ������������������������������������������������������������ .git ������������������ config ������������������������������������������

    git config ���global user.name "���������������"
    git config ���global user.email "������������"
  • ������������

    • ������������������������������������������������������������
    • ���������������������������������������������������
    • ������������������GitHub ������������������������������Git������������������������������������
    上一篇:linux 脚本 crontab 定时删除清理日志
    下一篇:Centos 7.6 安装redis 并设置密码

    发表评论

    最新留言

    很好
    [***.229.124.182]2025年04月16日 13时28分15秒