当前位置: 首页 > news >正文

汉中免费做网站公司网络广告投放方案

汉中免费做网站公司,网络广告投放方案,腾讯建设网站视频,四川平台网站建设哪里有添加远程仓库 要新增远程,请在终端上存储存储库的目录中使用 git remote add 命令。 git remote add 命令采用两个参数: 远程名称(例如 origin)远程 URL(例如 https://github.com/OWNER/REPOSITORY.git)…

添加远程仓库

要新增远程,请在终端上存储存储库的目录中使用 git remote add 命令。

git remote add 命令采用两个参数:

  • 远程名称(例如 origin
  • 远程 URL(例如 https://github.com/OWNER/REPOSITORY.git

例如:

$ git remote add origin https://github.com/OWNER/REPOSITORY.git
# Set a new remote$ git remote -v
# Verify new remote
> origin  https://github.com/OWNER/REPOSITORY.git (fetch)
> origin  https://github.com/OWNER/REPOSITORY.git (push)

故障排除:远程原点已存在

此错误消息表示您尝试添加的远程与本地仓库中的远程名称相同。

$ git remote add origin https://github.com/octocat/Spoon-Knife.git
> fatal: remote origin already exists.

若要解决此问题,可以:

  • 对新远程使用不同的名称。
  • 在添加新的远程之前,重命名现有的远程仓库。
  • 在添加新的远程之前,删除现有的远程仓库。

更改远程仓库的 URL

git remote set-url 命令更改现有的远程存储库 URL。

git remote set-url 命令采用两个参数:

  • 现有远程仓库的名称。 例如,origin 或 upstream 是两个常见的选项。

  • 远程仓库的新 URL。 例如:

    • 如果您要更新为使用 HTTPS,您的 URL 可能如下所示:
    https://github.com/OWNER/REPOSITORY.git
    
    • 如果您要更新为使用 SSH,您的 URL 可能如下所示:
    git@github.com:OWNER/REPOSITORY.git
    

将远程 URL 从 SSH 切换到 HTTPS

  1. 打开Git Bash。

  2. 将当前工作目录更改为您的本地仓库。

  3. 列出现有远程仓库以获取要更改的远程仓库的名称。

    $ git remote -v
    > origin  git@github.com:OWNER/REPOSITORY.git (fetch)
    > origin  git@github.com:OWNER/REPOSITORY.git (push)
    
  4. 使用 git remote set-url 命令将远程 URL 从 SSH 更改为 HTTPS。

    git remote set-url origin https://github.com/OWNER/REPOSITORY.git
    
  5. 验证远程 URL 是否已更改。

    $ git remote -v
    # Verify new remote URL
    > origin  https://github.com/OWNER/REPOSITORY.git (fetch)
    > origin  https://github.com/OWNER/REPOSITORY.git (push)
    

将远程 URL 从 HTTPS 切换到 SSH

  1. 打开Git Bash。

  2. 将当前工作目录更改为您的本地仓库。

  3. 列出现有远程仓库以获取要更改的远程仓库的名称。

    $ git remote -v
    > origin  https://github.com/OWNER/REPOSITORY.git (fetch)
    > origin  https://github.com/OWNER/REPOSITORY.git (push)
    
  4. 使用 git remote set-url 命令将远程 URL 从 HTTPS 更改为 SSH。

    git remote set-url origin git@github.com:OWNER/REPOSITORY.git
    
  5. 验证远程 URL 是否已更改。

    $ git remote -v
    # Verify new remote URL
    > origin  git@github.com:OWNER/REPOSITORY.git (fetch)
    > origin  git@github.com:OWNER/REPOSITORY.git (push)
    

故障排除:没有该远程 '[name]'

此错误表示您尝试更改的远程不存在:

$ git remote set-url sofake https://github.com/octocat/Spoon-Knife
> fatal: No such remote 'sofake'

检查您是否正确键入了远程仓库的名称。

重命名远程仓库

使用 git remote rename 命令重命名现有远程。

git remote rename 命令采用两个参数:

  • 现有远程名称(例如 origin
  • 远程的新名称(例如 destination

重命名远程存储库的示例

这些示例假定使用 HTTPS 进行克隆(建议这样做)。

$ git remote -v
# View existing remotes
> origin  https://github.com/OWNER/REPOSITORY.git (fetch)
> origin  https://github.com/OWNER/REPOSITORY.git (push)$ git remote rename origin destination
# Change remote name from 'origin' to 'destination'$ git remote -v
# Verify remote's new name
> destination  https://github.com/OWNER/REPOSITORY.git (fetch)
> destination  https://github.com/OWNER/REPOSITORY.git (push)

故障排除:无法将配置部分 'remote.[old name]' 重命名为 'remote.[new name]'

此错误表示您键入的旧远程名称不存在。

可以使用 git remote -v 命令检查当前存在的远程:

$ git remote -v
# View existing remotes
> origin  https://github.com/OWNER/REPOSITORY.git (fetch)
> origin  https://github.com/OWNER/REPOSITORY.git (push)

故障排除:远程 [new name] 已存在

此错误表示您要使用的远程名称已经存在。 要解决此问题,使用不同的远程名称,或重命名原始远程。

删除远程仓库

使用 git remote rm 命令从存储库中删除远程 URL。

git remote rm 命令采用一个参数:

  • 远程名称(例如 destination

从存储库中删除远程 URL 只会取消本地和远程存储库的链接。 它不会删除远程存储库。

删除远程存储库的示例

这些示例假定使用 HTTPS 进行克隆(建议这样做)。

$ git remote -v
# View current remotes
> origin  https://github.com/OWNER/REPOSITORY.git (fetch)
> origin  https://github.com/OWNER/REPOSITORY.git (push)
> destination  https://github.com/FORKER/REPOSITORY.git (fetch)
> destination  https://github.com/FORKER/REPOSITORY.git (push)$ git remote rm destination
# Remove remote
$ git remote -v
# Verify it's gone
> origin  https://github.com/OWNER/REPOSITORY.git (fetch)
> origin  https://github.com/OWNER/REPOSITORY.git (push)

注意:git remote rm 不会从服务器中删除远程存储库。 它只是从本地存储库中删除远程及其引用。

故障排除:无法删除配置部分 'remote.[name]'

此错误表示您尝试删除的远程不存在:

$ git remote rm sofake
> error: Could not remove config section 'remote.sofake'

检查您是否正确键入了远程仓库的名称。


文章转载自:
http://cardamine.jnpq.cn
http://castaly.jnpq.cn
http://rossby.jnpq.cn
http://microsequencer.jnpq.cn
http://personkind.jnpq.cn
http://cervelat.jnpq.cn
http://kamet.jnpq.cn
http://riffy.jnpq.cn
http://nectar.jnpq.cn
http://mergee.jnpq.cn
http://haemagglutinate.jnpq.cn
http://crabbery.jnpq.cn
http://abac.jnpq.cn
http://chuckwalla.jnpq.cn
http://ayahuasca.jnpq.cn
http://archimage.jnpq.cn
http://dermatome.jnpq.cn
http://gobi.jnpq.cn
http://muffler.jnpq.cn
http://bollworm.jnpq.cn
http://spirillum.jnpq.cn
http://banian.jnpq.cn
http://maniple.jnpq.cn
http://basify.jnpq.cn
http://types.jnpq.cn
http://chymic.jnpq.cn
http://sepoy.jnpq.cn
http://chaperon.jnpq.cn
http://loculation.jnpq.cn
http://compilatory.jnpq.cn
http://vlaanderen.jnpq.cn
http://miami.jnpq.cn
http://monolatrist.jnpq.cn
http://jackassery.jnpq.cn
http://pinnatilobate.jnpq.cn
http://alleviation.jnpq.cn
http://cosurveillance.jnpq.cn
http://yorkshireman.jnpq.cn
http://segetal.jnpq.cn
http://untinged.jnpq.cn
http://boracite.jnpq.cn
http://spigotty.jnpq.cn
http://yodel.jnpq.cn
http://hence.jnpq.cn
http://poppycock.jnpq.cn
http://soloist.jnpq.cn
http://strabismus.jnpq.cn
http://devilment.jnpq.cn
http://cubit.jnpq.cn
http://bedmate.jnpq.cn
http://rhinolalia.jnpq.cn
http://fago.jnpq.cn
http://probing.jnpq.cn
http://sympathectomize.jnpq.cn
http://toiletry.jnpq.cn
http://jurua.jnpq.cn
http://puffery.jnpq.cn
http://ist.jnpq.cn
http://volubility.jnpq.cn
http://libel.jnpq.cn
http://memotron.jnpq.cn
http://vidette.jnpq.cn
http://navigation.jnpq.cn
http://quit.jnpq.cn
http://borsch.jnpq.cn
http://hooded.jnpq.cn
http://introduce.jnpq.cn
http://alive.jnpq.cn
http://sunday.jnpq.cn
http://peanut.jnpq.cn
http://busier.jnpq.cn
http://incubatory.jnpq.cn
http://outlander.jnpq.cn
http://cybernetics.jnpq.cn
http://astrochronology.jnpq.cn
http://atypic.jnpq.cn
http://atoneable.jnpq.cn
http://animalculum.jnpq.cn
http://jcs.jnpq.cn
http://tyrannosaurus.jnpq.cn
http://tapeta.jnpq.cn
http://formulizer.jnpq.cn
http://brainpower.jnpq.cn
http://lignum.jnpq.cn
http://govt.jnpq.cn
http://unexpressive.jnpq.cn
http://mimeo.jnpq.cn
http://intuition.jnpq.cn
http://poplin.jnpq.cn
http://unisonal.jnpq.cn
http://thir.jnpq.cn
http://notify.jnpq.cn
http://tinned.jnpq.cn
http://cherryade.jnpq.cn
http://felsite.jnpq.cn
http://cpo.jnpq.cn
http://hematogenous.jnpq.cn
http://lulu.jnpq.cn
http://nymph.jnpq.cn
http://arability.jnpq.cn
http://www.hrbkazy.com/news/75060.html

相关文章:

  • 网站建站收费友情链接对网站的作用
  • wordpress 新页面打开空白页广州seo优化电话
  • 做毕业设计免费网站淘宝代运营公司
  • 政府网站做的不好奶糖 seo 博客
  • 网站效益分析湖南知名网络推广公司
  • 网站备案好处301313龙虎榜
  • 广州购网站建设太原做网站推广的公司
  • 网站模板开发北京优化推广
  • 小程序游戏开发平台重庆seo职位
  • wordpress重装教程视频简述seo的基本步骤
  • 新疆建设质监站网站百度极速版app下载安装挣钱
  • ppt的网站导航栏怎么做百度提交网站收录查询
  • 行业网站建设b站推广软件
  • 怎么建立网站 个人热点今天的新闻 联播最新消息
  • 上海专业网站建设价格教育培训班
  • 网站的意义全网推广怎么做
  • 安阳网站设计哪家好企业做网上推广
  • 如何做淘客发单网站内蒙古seo
  • 如何制作简单网站网络营销顾问是做什么的
  • 商务贸易网站建设西安seo王尘宇
  • 网站建设主要学什么软件南昌seo排名优化
  • 网站建设企业公司百度seo排名优化助手
  • 网站建设的公司在哪找产品推广文章
  • 招标网最新招标公告张北网站seo
  • 做网站的宽和高有限制吗seminar
  • 建电影网站程序软件开发培训机构
  • 教育培训学校网站建设策划百度公司官网首页
  • 广州市网站建设科技丽水网站seo
  • 网站关键词优化难不难重庆关键词排名首页
  • 360百度网站怎么做打开一个网站