Difference between revisions of "Pathspec"
Jump to navigation
Jump to search
(Created page with " ╷ │ Error: Failed to download module │ │ Could not download module "parameters" (main.tf:257) source code from "github.com/your-project/your-module/parameters":...") |
|||
(15 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
− | + | {{lowercase}} | |
╷ | ╷ | ||
Line 9: | Line 9: | ||
│ | │ | ||
╵ | ╵ | ||
+ | |||
+ | [[git checkout]] main | ||
+ | error: pathspec 'main' [[did not match any file(s) known to git]] | ||
+ | |||
+ | [[git checkout -m]] "my first branch" | ||
+ | error: pathspec 'my first branch' did not match any file(s) known to git | ||
+ | |||
+ | [[git checkout]] your-branch | ||
+ | Note: switching to 'remotes/origin/your-branch'. | ||
+ | |||
+ | You are in '[[detached HEAD]]' state. You can look around, make experimental | ||
+ | changes and commit them, and you can discard any commits you make in this | ||
+ | state without impacting any branches by switching back to a branch. | ||
+ | |||
+ | If you want to create a new branch to retain commits you create, you may | ||
+ | do so (now or later) by using -c with the switch command. Example: | ||
+ | |||
+ | git switch -c <new-branch-name> | ||
+ | |||
+ | Or undo this operation with: | ||
+ | |||
+ | git switch - | ||
+ | |||
+ | Turn off this advice by setting config variable [[advice.detachedHead]] to false | ||
+ | |||
+ | [[HEAD]] is now at 7caef6a60 Add doc | ||
+ | |||
+ | == Related == | ||
+ | * <code>[[refname]]</code> | ||
+ | |||
+ | == See also == | ||
+ | * {{git checkout}} | ||
+ | * {{pathspec}} | ||
+ | |||
+ | [[Category:Computer]] |
Latest revision as of 12:42, 23 June 2023
╷ │ Error: Failed to download module │ │ Could not download module "parameters" (main.tf:257) source code from "github.com/your-project/your-module/parameters": │ error downloading 'https://github.com/your-project/terrafo-infra.git': /usr/bin/git exited with 1: error: pathspec 'master' did not │ match any file(s) known to git │ ╵
git checkout main error: pathspec 'main' did not match any file(s) known to git
git checkout -m "my first branch" error: pathspec 'my first branch' did not match any file(s) known to git
git checkout your-branch Note: switching to 'remotes/origin/your-branch'. You are in 'detached HEAD' state. You can look around, make experimental changes and commit them, and you can discard any commits you make in this state without impacting any branches by switching back to a branch. If you want to create a new branch to retain commits you create, you may do so (now or later) by using -c with the switch command. Example: git switch -c <new-branch-name> Or undo this operation with: git switch - Turn off this advice by setting config variable advice.detachedHead to false HEAD is now at 7caef6a60 Add doc
Related[edit]
See also[edit]
git checkout
[-b
|master | main | -f
]pathspec, git checkout, refname
Advertising: