在工程根目录,初始化git工程
bogon:jsfrf han$ git init
Initialized empty Git repository in /Users/han/workspace/jsfrf/.git/
添加并提交全部文件到git库
bogon:jsfrf han$ git add -A
bogon:jsfrf han$ git commit -m 'initialize jsfrf project.'
[master (root-commit) b53be23] initialize jsfrf project.
27 files changed, 713 insertions(+), 0 deletions(-)
⋯⋯
在本地版本库中设置gitHub远程版本库的别名
bogon:jsfrf han$ git remote add origin git@github.com:feuyeux/jsfrf.git
提交到远程
bogon:jsfrf han$ git push origin master
Counting objects: 56, done.
Delta compression using up to 2 threads.
Compressing objects: 100% (38/38), done.
Writing objects: 100% (56/56), 17.02 KiB, done.
Total 56 (delta 4), reused 0 (delta 0)
To git@github.com:feuyeux/jsfrf.git
* [new branch] master -> master