//github 在线学习的地址,很好用的入门教程;https://try.github.io/levels/1///本地初始化 ,并关联远程的git地址
touch README.md
git init
git add README.md
git commit -m "first commit"
git remote add origin https://github.com/sqqihao/xxx.git
git push -
u origin master
//git克隆项目
$ git clone https:
//github.com/plusjade/jekyll-bootstrap.git USERNAME.github.com
$ cd USERNAME.github.com
$ git remote set-url origin https:
//github.com/sqqihao/xxx.git
$ git push origin master
//项目分支
git branch 分支的名字;
git checkout 分支的名字
git push origin 分支的名字; //提交的 commentgit commit -m "add all";//提交所有的 txt文件git add "*.txt";//查看历史发布信息git log;//增加项目git remote add origin https://github.com/try-git/try_git.git//直接pushgit push - u origin master//从远处拖回来git pusll origin master//查看git数据 的改变git diff//删数据git rm "*.txt"//先checkout到master; 从分支里面合并branchgit merge clean_up;//删除分支git branch -d chean_up//发布到githubgit push
先些这些后面接着补充
转载于:https://www.cnblogs.com/diligenceday/p/3926634.html
相关资源:GitHub for Windows离线安装包