git
preference--→ version control ---→ Ignored Files 添加忽略上传的文件
VCS ------>Git------->Commit Directory 提交本地仓库
push失败需要本地仓库的主线master和远程仓库的master绑定在一起,因此需要VCS----->Git-----→fetch获取远程分支
fetch之后出现origin/master
git branch --set-upstream-to origin/master 绑定
再push,若出现merge错误,git pull --allow-unrelated-histories 允许拉取不相关记录
右下角分别为
创建本地分支 +new branch
本地分支 localBranchs
远程分支 remote branchs
pull代码
点击pull,在弹出的对话框点击merge合并
1.github上为项目创建git
2.VCS—》Import into Version Control-----》Create Git Responsitory ,,,,,选择文件项目地址
3.remote add ::::::::bash上
git remote add origin https://github.com/[username]/HelloNDK.git
4.再git---》add
5.再push
切换到对应班优分支,fetch,再绑定,最后在右下角找到对应的分支,check-out即可