我正在使用的工具需要在〜/ .gitconfig中输入一个条目:
[remote "foo"]
token = 1894701a
然而,这意味着从任何git存储库,git认为我有一个名为" foo"的额外远程。所以如果我跑
git fetch --all
抱怨
fatal: 'foo' does not appear to be a git repository
fatal: Could not read from remote repository.
有没有办法告诉git只获取我本地git存储库实际指定的遥控器?或者不尝试在没有远程URL的情况下获取遥控器?
答案 0 :(得分:2)
启用skipFetchAll选项应该可以解决问题:
Public Class Form2
' field that will contain the messege
Private PromtMsg As String
Sub New(ByVal promtmsg As String)
' This call is required by the designer.
InitializeComponent()
' Add any initialization after the InitializeComponent() call.
' set global field with the argument that was passed to the constructor
Me.PromtMsg = promtmsg
End Sub
Private Sub Form2_Load(sender As Object, e As EventArgs) Handles MyBase.Load
' set the msg label
Me.lblPromtMsg.Text = Me.PromtMsg
End Sub
Private Sub btnCustomYes_Click(sender As Object, e As EventArgs) Handles btnCustomYes.Click
' user choosed yes - return DialogResult.Yes
Me.DialogResult = DialogResult.Yes
Me.Close()
End Sub
Private Sub btnCustomNo_Click(sender As Object, e As EventArgs) Handles btnCustomNo.Click
' user choosed no - DialogResult.no
Me.DialogResult = DialogResult.No
Me.Close()
End Sub
End Class
git-config手册页有一个完整的配置选项列表。