1,登录git账号
步骤:File->Settings->git
2,创建本地仓库
步骤:VCS->import into vesion control->Create Git Repository->选择要上传的项目
创建成功后,变褐色!
3,把项目加入本地仓库并提交
步骤:项目点击右键->Git->Add (添加成功后,变绿色!)
项目点击右键->Git->Commit (添加成功后,变黑色!)
4,提交到远处仓库
(1)先在github上创建仓库,赋值URL(Https方式)
步骤:项目右键->Git->Respository->push
5,下载git项目
(1)准备好项目的URL
VCS->Checkout from vesion control->Git
6,更新git项目
1,先提交到本地仓库
步骤:VCS->Git->Repository->Push
7,分支(前后端分离)
步骤:项目右键->Git->Repository->Branches
合并分支:
项目右键->Git->Repository->Branches->merge