git使用与常见报错处理

使用git访问github

  • 本地内容推送到github

    ssh -T [email protected]  //测试连接
    
    git remote add origin [email protected]:/XM-LRC/Javalearn
    
     git push -u origin master     首次提交才要
    
  • 从远程库克隆

    • 先找到要下载的位置,使用cd命令

    • git clone [email protected]:/XM-LRC/gig.git
      

报错处理

  • `Please enter a commit message to explain why this merge is necessary,
    especially if it merges an updated upstream into a topic branch。`
    上述提示要输入什么东西的,解决如下:
    
    输入“:wq”,注意是英文输入状态下的冒号,然后按下“Enter”键即可。
    
    个人多次遇到,特总结下供网友们交流互勉。
    
    “ :wq”是Linux操作系统命令: 表示强制性写入文件并退出。
    
  • 出现中文字符显示为转义字符的情况
    
    解决如下:
    	git config --global core.quotepath false
    

猜你喜欢

转载自blog.csdn.net/weixin_43742062/article/details/105162583