zoukankan      html  css  js  c++  java
  • 6月10日 GIT基本应用

    注册:
    1、git config --global user.name
    2、git config --global user.email
    3、ssh-keygen -t rsa-C "邮箱"


    4、Git验证key

    1.设置git的user name和email:
    git config --global user.name ""
    git config --global user.email ""

    2.生存密钥:
    ssh-keygen -t rsa -C “”
    按3个回车,密码为空


    解决冲突:
    1、提交
    2、打开文件夹
    3、Bash-->git remote update-->git pull orgion 分支名
    4、如果有冲突,显示(!merging)
    右键TortoiseGit-->resolve

    创建分支:
    git checkout -b 分支名
    删除新建的分支:
    git branch -b 分支名

    拉取:
    git pull origin 分支名
    更新:
    git push origin 分支名
    git pull

    步骤:
    1、获取、下载文件:git clone [url]
    2、切换分支:git checkout developv1.0
    3、修改程序,保证没错后commit提交一下
    4、查看更新:git remote update
    5、若有更新,拉取下来,解决冲突:git pull origin 分支名
    解决冲突:
    (1)、提交
    (2)、打开文件夹
    (3)、Bash-->git remote update-->git pull orgion 分支名
    (4)、如果有冲突,显示(!merging)
    右键TortoiseGit-->resolve

    6、解决完冲突,推送到远程:git push origin 分支名

    http://www.bootcss.com/p/git-guide/

  • 相关阅读:
    常见正则总结
    word 操作教程
    word调整技巧
    关于如何自定义handler
    html 处理
    iis 导入和导出配置——iis管理
    前端学习
    动态添加js的方法
    jquery学习笔记
    php学习笔记
  • 原文地址:https://www.cnblogs.com/tzq9308/p/4566999.html
Copyright © 2011-2022 走看看