zoukankan      html  css  js  c++  java
  • 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

  • 相关阅读:
    内存溢出和内存泄漏的区别
    测试管理三要素(人员、过程和技术)
    面试可提问的6个问题
    弱网测试(二)
    js捕获错误
    TortoiseGit自动记住用户名密码的方法
    win7 "com surrogate“ 已停止工作的解决办法
    仿百度图片毛玻璃效果
    毛玻璃效果
    vimium快捷键列表
  • 原文地址:https://www.cnblogs.com/edzjx/p/9260595.html
Copyright © 2011-2022 走看看