question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Fetch with url throws "not a valid remote name".

See original GitHub issue

Nothing much to tell, fetch with url is not working.

Example:

Repository.Network.Fetch("https://github.com/libgit2/libgit2sharp.git", new[] { "+refs/remotes/test:refs/heads/master" });

Exception: InvalidSpecificationException: ‘https://github.com/libgit2/libgit2sharp.git’ is not a valid remote name.

Issue Analytics

  • State:open
  • Created 6 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
ethomsoncommented, Sep 3, 2017

Okay, thanks for the clarification. I definitely agree with that. I’m going to reopen to make sure that we take care of that. Thanks!

0reactions
Ranjankumarrjcommented, Jul 28, 2020

git remote add https-//github.com/Ranjanudt/LatestOfferScreen.git LatestOfferScreen fatal: ‘https-//github.com/Ranjanudt/LatestOfferScreen.git’ is not a valid remote name

just put (git remote add origin) after https link pastes it.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to fetch from SSH git repo in LibGit2Sharp?
I am guessing the fetch command is looking for a remote name (like origin), so that is not a valid remote. You need...
Read more >
Git - git-fetch Documentation
git fetch can fetch from either a single named repository or URL, or from several repositories at once if <group> is given and...
Read more >
Repository import by URL throws "There is not a valid Git ...
Summary Attempting to import a repository from a Git 3rd party vendor such as GitHub or BitBucket Cloud via.
Read more >
fetch() global function - Web APIs | MDN
Invalid URL or scheme, or using a scheme that fetch does not support, or using a scheme that is not supported for a...
Read more >
git-fetch - Download objects and refs from another repository
<repository> The "remote" repository that is the source of a fetch or pull operation. This parameter can be either a URL (see the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found