zoukankan      html  css  js  c++  java
  • git修改远端服务器地址


    方法有三种:

    1.修改命令

    git remote set-url origin [url]

    2.先删后加

    git remote rm origin
    git remote add origin [url]

    3.直接修改config文件

    $ git remote origin set-url http://192.168.2.69/acl/acl-doc.git
    error: Unknown subcommand: origin
    usage: git remote [-v | --verbose]
       or: git remote add [-t <branch>] [-m <master>] [-f] [--tags | --no-tags] [--mirror=<fetch|push>] <name> <url>
       or: git remote rename <old> <new>
       or: git remote remove <name>
       or: git remote set-head <name> (-a | --auto | -d | --delete | <branch>)
       or: git remote [-v | --verbose] show [-n] <name>
       or: git remote prune [-n | --dry-run] <name>
       or: git remote [-v | --verbose] update [-p | --prune] [(<group> | <remote>)...]
       or: git remote set-branches [--add] <name> <branch>...
       or: git remote set-url [--push] <name> <newurl> [<oldurl>]
       or: git remote set-url --add <name> <newurl>
       or: git remote set-url --delete <name> <url>
    
        -v, --verbose         be verbose; must be placed before a subcommand
  • 相关阅读:
    Spring Cloud 模块简介2
    Eureka简介
    Spring Cloud 模块简介
    成神之路-基础篇 转
    Java面试题无答案
    java程序猿常用Linux命令
    Java工程师成神之路 转
    大型网站技术架构 大纲
    Mockito 相关资料
    webApp路由控制-vue-router2.0
  • 原文地址:https://www.cnblogs.com/aigeileshei/p/6394579.html
Copyright © 2011-2022 走看看