zoukankan      html  css  js  c++  java
  • Git本地操作相关介绍

    本地使用git时遇到问题及解决方案总结

    1.git push origin master 后,终端上出现错误信息: push失败,原因多半是因为github上远程仓库中有Reademe.md文件

    解决方法:先 git pull --rebase origin master 或者 git pull origin master后,再进行git push origin master

    2.git remote rm origin 取消本地仓库与远程仓库的关联

    3.git remote add origin + SSH(你的远程仓库ssh,在github上查看)  关联远程仓库

    图解:

      

    (图上是我本人的git SSH, 请勿直接照搬)

    4.git config --global user.name "(你的github账号名)"

       git config --global user.email "(你的github绑定的邮箱)"

    上述两步为配置本地git账户

    5.git remote -v 查看远程仓库关联

    总结:在学习git的使用上踩了一些坑,现总结如上一些指令,希望大家可以借鉴

  • 相关阅读:
    深入理解hadoop之MapReduce
    centos关机与重启命令
    hadoop学习笔记(1)
    配置ssh免密码登录设置后还是提示需要输入密码
    js获得URL中的参数
    SQLite介绍
    sql记录
    sql游标使用
    sql触发器
    sql函数
  • 原文地址:https://www.cnblogs.com/tim100/p/6394910.html
Copyright © 2011-2022 走看看