阅读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的体系结构与设置基于端口号的虚拟主机