初始化用戶名,郵箱git
$ git config --global user.name "defnngj"//給本身起個用戶名
$ git config --global user.email "defnngj@gmail.com"//填寫本身的郵箱github
git initshell
git add .windows
git commit -m "message for this commit"服務器
touch README.md網絡
git add README.mdssh
git status網站
去github網站創建一個repo 如"ts.git"this
git remote add origin git@github.com:wuzhuzhu/ts.git
若是遇到了fatal: remote origin already exists.輸入:rem
git remote rm origin
git remote add origin git@github.com:wuzhuzhu/ts.git
git push -u origin master
Counting objects: 19, done.
Compressing objects: 100% (16/16), done.
Writing objects: 100% (19/19), 4.54 KiB, done.
Total 19 (delta 1), reused 0 (delta 0)
To git@github.com:wuzhuzhu/ts.git
[new branch] master -> master
Branch master set up to track remote branch master from origin.
拉取git文檔:
在遠程主機上:
碰見的問題:
`