GitHub創建賬戶
- 登錄GitHub創建賬號 https://github.com/
- 下載並安裝Git https://git-scm.com/downloads
- 打開Git Bash配置git全局用戶名和郵箱
git config --global user.name 【用戶名】
git config --global user.email 【用戶郵箱】
- 在IDEA中設置Git
# File-->Setting-->Version Control-->Git-->【選擇Git的安裝目錄】
- 在IDEA中設置GitHub
# File-->Setting-->Version Control-->GitHub-->【選擇自己的GitHub賬戶】
- 創建本地倉庫
# VCS-->Import into Version Control-->Create Git Repository
- 將項目上傳至本地倉庫,或者更新本地倉庫
# 【右擊項目名】-->Git-->add
# 【右擊項目名】-->Git-->Commit Directory
- 將項目上傳到GitHub中
# VCS-->Import into Version Control-->Share Project on GitHub