版权声明:路漫漫其修远兮,吾将上下而求索。 https://blog.csdn.net/Happy_Sunshine_Boy/article/details/88743039
- win10本地安装git参考:https://blog.csdn.net/Happy_Sunshine_Boy/article/details/88736706
- 设置git全局用户名和邮箱
- IDEA中设置Git,在File–>Setting->Version Control–>Git–>Path to Git executable选择git安装后的git.exe文件,然后点击Test,测试是否设置成功
- IDEA中设置GitHub,File–>Setting->Version Control–>GibHub
- 创建本地仓库,VCS–>Import into Version Control–>Create Git Repository
- 把项目添加到本地git仓库,Git–>Add–>Commit File…
- 把项目上传到Github,VCS–>Import into Version Control–>Share Project on GitHub,点击Share,上传,弹窗输入GitHub的用户名和密码,上传成功后IDEA右下角会给出提示
- 登录Github查看