[关闭]
@kungfuboy 2016-07-05T10:03:08.000000Z 字数 291 阅读 815

Git&Github技术总结

Git


gitup.sh

  1. #!/bin/bash bash
  2. #文件名:gitup.sh
  3. #用途:与项目文件放在统一目录下,向github push本地代码
  4. echo `git add .`
  5. echo `git commit -m"ok"`
  6. echo `git remote rm origin`
  7. echo `git remote add origin git@github.com:kungfuboy/projectName.git`
  8. #将ssh协议地址换做自己的github地址,必须是ssh协议哦~
  9. echo `git pull origin master`
  10. echo `git push -u origin master`
添加新批注
在作者公开此批注前,只有你和作者可见。
回复批注