zoukankan      html  css  js  c++  java
  • git使用


    上传项目

    git init

    git remote add origin https://git.nevint.com/so-data-service-group/so-data-service-taskscheduler.git

    #git remote rm origin

    git pull origin master --allow-unrelated-histories

    git add .

    git commit -m lirui #1, add user master


    git push -u origin master

    配置ssh登入:

    cd ~/.ssh/
    git config --global user.name "xkwg"
    git config --global user.email "xkwg@163.com"
    ssh-keygen -t rsa -C "xkwg@163.com"

    到系统-用户-自己-.ssh 打开id_rsa.pub -> 添加到git页面, git-setting ssh中新建秘钥

    在项目的 .git下, 修改config文件, 将https地址换为 ssh地址。

    最后使用 git push 测试登入即可。

    更改密码时遇到的问题:     使用git --config修改密码后, 还是提示密码错误。    解决:   在控制面板-用户账户-管理用户凭据 中修改git密码。

    删除远程仓库

    git pull

    git rm touch.txt

    git commit -m "for test"

    git push

    有冲突时
    git reset --hard FETCH_HEAD

    复制项目

    git clone git@github.com:deeplearning4j/deeplearning4j.git

    mvn编译:
    到pom目录下, mvn install

  • 相关阅读:
    Redis_配置文件
    Redis_数据使用
    QQ登录测试用例
    JMeter性能测试入门--偏重工具的使用
    浅说《测试用例》
    axure界面功能
    性能测试相关术语
    测试用例设计和测试环境搭建
    测试需求分析
    软件测试的过程
  • 原文地址:https://www.cnblogs.com/ruili07/p/10374546.html
Copyright © 2011-2022 走看看