文章出處

//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

先些這些后面接著補充


文章列表


不含病毒。www.avast.com
arrow
arrow
    全站熱搜
    創作者介紹
    創作者 大師兄 的頭像
    大師兄

    IT工程師數位筆記本

    大師兄 發表在 痞客邦 留言(0) 人氣()