zoukankan      html  css  js  c++  java
  • Git的基本使用(github)

    关于Git的基本使用: 上传本地文件到github仓库中

    首先要有自己的github账号,新建仓库: saiku-3.9

    其次 本地安装好 git , 在本地任意目录下新建目录 saiku-3.9, 进入新建的目录saiku-3.9 , 右击  --》  git bash ,git命令

     

    从github上下载仓库中的数据信息:

    1. git init #初始化本地git目录
    
    
    2. git add .  #将当前目录的所有文件信息添加到临时目录
    
    
    3. git commit -m "提交内容描述" #将临时目录里的内容提交
    
    
    4. git pull "https://github.com/DFX339/saiku-3.9.git" #从github上拉取仓库中的内容
     
    
    5. git remote add origin https://github.com/DFX339/saiku-3.9.git #添加git仓库信息 
    
    
    6. git push origin master #将本地内容推送到github仓库中
    

      

    ps:   https://github.com/DFX339/saiku-3.9.git   是我的github账号下的仓库地址

      saiku-3.9  是我的仓库名

    Problem:

    git 出现错误: fatal: refusing to merge unrelated histories

    解决方案:git pull origin master --allow-unrelated-histories
  • 相关阅读:
    python socket练习
    python异常处理
    python类的反射
    类的特殊成员方法
    staticmethod classmethod property方法
    类的多态
    类的析构、继承
    python subprocess模块
    python面向对象
    discuz 使模板中的函数不解析 正常使用
  • 原文地址:https://www.cnblogs.com/DFX339/p/10405561.html
Copyright © 2011-2022 走看看