怎样像gitHub上上传文件

初次创建项目并上传到文件中:

    git init //初始化远程仓库

    git status //状态

    //clear命令,清楚命令板上的数据

    git add . //或者使用 git add 文件名  // 把数据添加到暂存区中


    git commit -m '第一次提交'  //把暂存区中的文件提交到 git 仓库 

    git push -u origin master //把本地库的所有内容推送到远程库上
    

使用远程项目:

  git clone https://github.com/lvxisha/git-demo.git  //克隆仓库

    cd 项目名

    git add .

    git commit -m '提交项目备注'

    git push 

    git pull 
git init //初始化远程仓库
    git status //状态

    //clear命令,清楚命令板上的数据

    git add . //或者使用 git add 文件名  // 把数据添加到暂存区中


    git commit -m '第一次提交'  //把暂存区中的文件提交到 git 仓库 

    git push -u origin master //把本地库的所有内容推送到远程库上
    
原文地址:https://www.cnblogs.com/lvxisha/p/12322087.html