閱讀948 返回首頁    go 阿裏雲 go 技術社區[雲棲]


git命令大全

Create a new repository on the command line

touch README.md
git init
git add README.md
git commit -m "first commit"
git remote add origin https://github.com/xiebaochun/androidworkplace.git
git push -u origin master

Push an existing repository from the command line

git remote add origin https://github.com/xiebaochun/androidworkplace.git
git push -u origin master

添加remote:

     git remote add origin git://new.url.here

切換remote:

  需要ssh key:git remote set-url origin git://new.url.here
  需要輸入賬戶密碼:git remote set-url origin https://new.url.here

最後更新:2017-04-03 12:54:53

  上一篇:go 常用的進程計算腳本
  下一篇:go Tomcat的設置4——Tomcat的體係結構與設置基於端口號的虛擬主機