github

//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 分支的名字;

//提交的 comment
git commit -m "add all";
//提交所有的 txt文件
git add "*.txt";
//查看历史发布信息
git log;
//增加项目
git remote add origin https://github.com/try-git/try_git.git
//直接push
git push - u origin master
//从远处拖回来
git pusll origin master
//查看git数据 的改变
git diff
//删数据
git rm "*.txt"

//先checkout到master; 从分支里面合并branch
git merge clean_up;

//删除分支
git branch -d chean_up
//发布到github
git push

先些这些后面接着补充

原文地址:https://www.cnblogs.com/diligenceday/p/3926634.html