git remote -v说明

时间:2019-06-12 22:39:24

标签: git branch git-remote

我正在使用<template> <span> <span v-if="showNotification" class="msgc-notification" :style="{ top: topPos, left: leftPos, right: rightPos }"> {{ amountToDisplay }} </span> </span> </template> <script src="./msgc.js" /> <script src="./msgc.scss" scoped lang="scss" /> 来查看我的远程存储库。

import * as SessionValidator from 'session-validator'

export default {
  props: {
    isLoggedIn: {
      type: Boolean,
      default: SessionValidator.isValidSession()
    },
    unreadMessages: {
      type: Number,
      default: 0
    },
    amountToDisplay: {
      type: String,
      default: '0'
    },
    topPos: {
      type: String,
      default: 'auto'
    },
    leftPos: {
      type: String,
      default: 'auto'
    },
    rightPos: {
      type: String,
      default: 'auto'
    }
  },
  data() {
    return {
      showNotification: false
    }
  },
  watch: {
    unreadMessages: {
      handler: function handler(value) {
        this.showNotification = (this.isLoggedIn && value > 0)
        if (this.showNotification) this.amountToDisplay = value > 99 ? '+99' : value.toString()
      }
    }
  }
}

创建资源库时,我仅链接了一个远程资源库。

我的问题是为什么我要获得两个链接的远程书信?

在这种情况下,fetch和push关键字的含义是什么。我知道推送是用于发送,而提取是用于检索。

origin2是本地存储库吗?

1 个答案:

答案 0 :(得分:1)

origin2只是git remote add(可能是错误的)的结果:

git remote add origin2 https://github.com/...

由于URL与origin相同,所以git fetch不会两次提取。

如所评论的,简单的git remote remove origin2可以纠正此问题。

相关问题