首页 > 其他分享 >remote origin already exists

remote origin already exists

时间:2023-08-25 16:11:49浏览次数:31  
标签:origin already remote exists 仓库 git

如果你clone下来一个别人的仓库,在此基础上完成你的代码,推送到自己的仓库可能遇到如下问题:
error: remote origin already exists.表示远程仓库已存在。
因此你要进行以下操作:
1、先输入git remote rm origin 删除关联的origin的远程库
2、关联自己的仓库 git remote add origin https://gitee.com/xxxxxx.git
3、最后git push origin master,这样就推送到自己的仓库了。

标签:origin,already,remote,exists,仓库,git
From: https://www.cnblogs.com/gloryhope/p/17657208.html

相关文章

  • DP报Script failed. Cannot get information from remote host案例
    HPDP(DataProtectorManager)上一个刚刚迁移升级的数据库备份作业失败,具体失败信息如下.................................RMAN-08503: piece handle=c-1684727642-20230822-00 comment=API Version 2.0,MMS Version 65.10.40.118RMAN-03091: Finished Control File......
  • A VNC server is already running as :1
    看到这一行字是不是很崩溃。当输入vncserver-kill:1,输出结果是:Can'tfindfile/home/ubuntu/.vnc/VM-0-11-ubuntu:1.pidYou'llhavetokilltheXtightvncprocessmanually是不是更崩溃。 不过,经过热心网友的分享,且最终亲测有效的解决方法就是:删除这两个文件。rm/......
  • 无法连接仓库:Command "git ls-remote -h -- https://gitee.com/xxx/xxxrned status co
    无法连接仓库:Command"gitls-remote-h--https://gitee.com/xxx/xxxrnedstatuscode128:stdout:stderr:remote:[session-554c92af]Usernamefor'https:Incorrectusernameorpassword(accesstoken)fatal:Authenticationfailedfor'http......
  • allowedOrigins cannot contain the special value "*"
    SpringBoot的版本高于2.4以后,原来的配置已经不适合目前的版本将代码中的allowedOrigins改为allowedOriginPatterns@ConfigurationpublicclassWebConfigimplementsWebMvcConfigurer{/***跨域支持**@paramregistry*/@Override......
  • 2023-08-22 git remote -v 为空 ==》为空意味着没有你该仓库没有远程仓库地址
    我想给新建的项目A创建一个版本库,so,我gitinit,然后我用gitremote-v查看,回车然后就为空了,百度了一下,说是没有你该仓库没有远程仓库地址;我还以为会链接到我其他的仓库去,看来不会,so,我在github创建了一个远程仓库,然后用gitremote-v链接到该仓库;即gitremote-v远程仓库地址;回车......
  • 解决getOutputStream() has already been called for this response
    getOutputStream()hasalreadybeencalledforthisresponse异常出现的原因和解决方法:jsp中出现此错误一般都是在jsp中使用了输出流(如输出图片验证码,文件下载等),没有妥善处理好的原因。具体的原因:jsp编译成servlet之后在函数_jspService(HttpServletRequestrequest,HttpServlet......
  • k8s推送代码至gitlab报错error: RPC failed; result=22, HTTP code = 413 fatal: The
    #gitpush-uoriginmainUsernamefor'http://gitlab.wjl.net':rootPasswordfor'http://[email protected]':Countingobjects:1032,done.Deltacompressionusingupto8threads.Compressingobjects:100%(871/871),done.error:R......
  • GitHub: remote:Support for password authentication was removed on August 13,2021
    使用gitpushoriginmaster向远程仓库推送时被告知:remote:SupportforpasswordauthenticationwasremovedonAugust13,2021.Pleaseuseapersonalaccesstokeninstead.ush的时候需要输入github的账户名和密码,而这里的大概意思就是密码验证在2021年8月13号被移除了,需要......
  • nginx 过滤相关的referer 和 origin
    1.相关配置如下location/{#set$allow_cors0;##判断不为空#if($http_origin){#set$allow_cors1;#}#set$flag0;valid_referers10.800;......
  • [ARC125C] LIS to Original Sequence
    首先考虑\(k=1\),唯一的方案就是倒序输出\(1\)到\(n\)。我们可以想到,这道题的方法是向已经确定的序列\(A\)中插入其他数。对于一个数\(x(x<A_i)\),是不能把它放在\(A_i\)前的,不然会使最长上升子序列的长度变大。为了保证字典序最小,我们得把能放在\(A_i\)后的最小......