github 入门
$ git config --global user.name "Your Name" $ git config --global user.email your.email@example.com
$ git config --global credential.helper 'cache --timeout=3600" cache 密码
$ git init
关于ignore文件添加
$ git add .
$ git commit -m "Initial commit"
$ git status
$ git checkout -f -f强制覆盖当前改变
$ git remote add origin git@github.com:<username>/first_app.git $ git push -u origin master
关于key:
https://help.github.com/articles/generating-ssh-keys,这篇文档很重要,还有这个https://help.github.com/articles/error-agent-admitted-failure-to-sign。
添加文件
git add . 或者 文件名;
然后git commit -m " some thing"
git push

浙公网安备 33010602011771号