如何解决" Github无法克隆存储库"。我正在使用Github for windows Gui版

时间:2015-08-14 13:44:36

标签: github

2015-08-14 19:13:13.3920|WARN|thread: 1|StandardUserErrors|Showing user error Failed to get list of branches.
LibGit2Sharp.InvalidSpecificationException: 'https://github.com/gouravwalia1990/TMM' is not a valid remote name.
   at LibGit2Sharp.Core.Ensure.HandleError(Int32 result)
   at LibGit2Sharp.Core.Proxy.git_branch_upstream_name(RepositorySafeHandle handle, String canonicalReferenceName)
   at LibGit2Sharp.Branch.ResolveTrackedBranch()
   at System.Lazy`1.CreateValue()
   at System.Lazy`1.LazyInitValue()
   at System.Lazy`1.get_Value()
   at LibGit2Sharp.Branch.get_TrackedBranch()
   at GitHub.ConcurrentRepositoryConnection.<GetBranches>b__16(Branch x)
   at System.Linq.Enumerable.WhereSelectListIterator`2.MoveNext()
   at System.Linq.Enumerable.WhereEnumerableIterator`1.MoveNext()
   at System.Linq.Enumerable.<ExceptIterator>d__99`1.MoveNext()
   at System.Linq.Enumerable.<ConcatIterator>d__71`1.MoveNext()
   at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
   at GitHub.ConcurrentRepositoryConnection.<GetBranches>b__13()
   at System.Reactive.Linq.ObservableImpl.Defer`1.Eval()
   at System.Reactive.Linq.ObservableImpl.Defer`1._.Run()
2015-08-14 19:12:03.6625|INFO|thread: 1|CommandLineHandler|Parsing command line arguments:C:\Users\gopal\AppData\Local\Apps\2.0\ZQWGNE9R.3YE\60LC4KXB.QK2\gith..tion_317444273a93ac29_0002.000e_114545a4195e25d4\GitHub.exe
2015-08-14 19:12:03.7836|INFO|thread: 1|AppInstanceCommunicator|Starting up as master instance of GitHub for Windows
2015-08-14 19:12:04.1709|INFO|thread: 5|StartupLogging|

1 个答案:

答案 0 :(得分:1)

错误非常明确,您没有提供有效的存储库名称。

LibGit2Sharp.InvalidSpecificationException: 'https://github.com/gouravwalia1990/TMM' is not a valid remote name.

看起来你没有使用正确的url到repo,而是使用repo网页的url。

您可以在网页上找到回购网址:https://github.com/gouravwalia1990/TMM

HTTPS clone URL : https://github.com/gouravwalia1990/TMM.git