Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong solution for Remote / To Origin And Beyond -- Advanced Git Remotes! / 6: Fetch arguments #11

Open
stas1404 opened this issue Jun 8, 2024 · 1 comment
Assignees

Comments

@stas1404
Copy link
Contributor

stas1404 commented Jun 8, 2024

In your solution you first use

git fetch origin main~1:foo

,
but when using it in the game, I get such a mistake:
alt text

When running your solution with real repository, get

fatal: invalid refspec 'main~1:foo'

I even tried to use

git fetch origin main^:foo

But get the same error

fatal: invalid refspec 'main^:foo'

Please find a new solution

@saivittalb saivittalb self-assigned this Jul 4, 2024
@thisdavej
Copy link

@stas1404 I ran into this same issue. The solution I found was to reference by the direct commit numbers. For example:
git fetch origin c3:foo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants