Git&Github使用入門
使用git將本地文件上傳到github倉庫
首先配置個人的用戶名稱和電子郵件地址:
$ git config --global user.name "你的github用戶名"
$ git config --global user.email "你的github郵箱"
然後
$ git init
$ git add -A //跟蹤所有,會提交到暫存區
$ git status //顯示工作目錄和暫存區的狀態
$ git commit -m '描述' //提交
$ git log //查看提交記錄
$ git remote add origin https://github.com/xxx/xxx.git //地址用如下方法獲取
$ git remote -v //查看
$ git branch //查看所處分支
$ git pull origin master --allow-unrelated-histories //pull
$ git push origin master //提交到master分支
在Github中
新建Repositoriy
複製遠程倉庫地址
詳細學習:https://www.liaoxuefeng.com/wiki/896043488029600
指令集:https://www.ruanyifeng.com/blog/2015/12/git-cheat-sheet.html