前提电脑上有 git bash
1.在源码根目录,右键 git bash here
2.命令行
git config --global user.name "less"
git config --global user.email "less@qq.com"
git init
git remote add origin ssh://git@域名/tyshawn/sdap1.git
git add . (注意空格之后的小点 . )
git commit -m "程序源代码" (-m 参数后跟提交说明的方式 ,防止出现Please enter the commit message for your changes. Lines starting ,后续一推消息)
git push -u origin master