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

上一篇:mysql split string


下一篇:【NGN学习笔记】3 软交换中的协议1--SIP、SIP-I/SIP-T/BICC