1 bob:~ apple$ cd /Users/apple/Desktop/FS13-60LAO
2 bob:FS13-60LAO apple$ git add -A
3 bob:FS13-60LAO apple$ git commit -m "first commit"
4 bob:FS13-60LAO apple$ git remote add origin [email protected]:。。。。。。
bob:FS13-60LAO apple$ git push -u origin master
使用GitHub管理代码:
1.在gitHub 上 new repositories
2.进入工程文件所在文件目录,git init
3.git add -A (进入文件 添加文件,-A表示添加全部文件)
4.git commit -m “提交备注”
5.git remote add origin url(该url是你new repositories后的url)
6.git push -u origin master (将本地的仓库提交到github账号里)(可能会输入github的账号和密码)