上传本地代码到github 发表于 2017-03-23 | 分类于 工具 建立git仓库123git init git add --allgit commit -m "something" github上创建自己的Repository 提交代码到远程仓库12git remote add origin git@github.com:guojingyinan/AidlServiceDemo.gitgit push -u origin master 这里特别注意,我们第一次push的时候,加上-u参数,Git就会把本地的master分支和远程的master分支进行关联起来,我们以后的push操作就不再需要加上-u参数了