git

push 推送至远程
git config --global user.name git config --global user.email
git init //as里是VCS-enable version control integration,选择git
git add readme.txt//右击项目git-add
git commit -m "wrote a readme file"//右击项目 git-commit
git remote add origin https://git.coding.net/edzjx/MyApplication.git //VCS-Git-Romotes 添加远程git地址
git pull origin master //vcs-git-pull 先拉一次
git pull origin master --allow-unrelated-histories //不知道如何手动添加参数,最后手动在as的命令行Terminal里操作
git push -u origin master//VSC-Git-push


pull从远程拉取,或者叫做更新代码

git branch --set-upstream-to=origin/master master  //手动执行命令建立track  orgin/master 是远程分支  master是本地分支。执行的结果会提示入“Branch 'master' set up to track remote branch 'master' from 'origin'.”

git pull //vcs-git-pull 关联后可以让远程分支与本地分支融合merge

原文地址:https://www.cnblogs.com/edzjx/p/9260595.html