github初始化版本

git命令上传初始化项目

(1)先去github创建自己的项目版本

(2)然后找到自己想要上传代码版本的目录
$ git init

$ git add ./src ./pom.xml

$ git commit -m "版本初始化"

$ git remote add XXX https://github.com/*****.git

$ git push -u XXX  master

大功告成,可以去自己的github上查看咯

原文地址:https://www.cnblogs.com/tuanz/p/13441633.html