1、VCS --> Import Into Version Control --> Create git Repository
2、打开GitBash 进入到项目的文件夹 输入 git remote add origin https://github.com/xxxxx/xxxxxx.git(项目git地址)
echo "# bbc" >> README.md
git init
git add README.md
git commit -m "first commit"
git remote add origin https://github.com/xxxxx/xxxxxx.git
git push -u origin master
3、打开AS 选择项目右键选择GIT --> add -->Commit Directory