Reputation: 102296
I'm trying to perform the equivalent of a Subversion checkout to a revision. In SVN, this is one step. According to How to clone git repository with specific revision/changeset? I am supposed to be able to git remote add origin url://to/source/repository
:
# git remote add git://sourceware.org/git/binutils-gdb.git
usage: git remote add [<options>] <name> <url>
-f, --fetch fetch the remote branches
...
Here's the information I have to work with:
Could you try whether applying the patch I pointed at (e0fd7c47bd) on the 7.10
branch fixes the internal error?
I'm guessing he means GDB's Git, and the revision hash is e0fd7c47bd.
How do I make Git accept the URL provided by the project?
Upvotes: 0
Views: 189
Reputation: 66237
I'm trying to perform the equivalent of a Subversion checkout to a revision
This is much simpler than the question implies. It's two steps:
$ git clone git://sourceware.org/git/binutils-gdb.git
$ cd binutils-gdb
$ git checkout 7.10
Unless there is a problem doing the above, nothing else is required.
Upvotes: 3
Reputation: 6465
You need to name the remote, so you could do:
git remote add sourceware git://sourceware.org/git/binutils-gdb.git
Upvotes: 4