Difference between revisions of "Git fetch"
Jump to navigation
Jump to search
(9 intermediate revisions by 3 users not shown) | |||
Line 3: | Line 3: | ||
https://git-scm.com/docs/git-fetch | https://git-scm.com/docs/git-fetch | ||
− | + | * [[git fetch --help]] | |
* <code>git fetch</code> | * <code>git fetch</code> | ||
+ | * <code>[[git -C]]</code> | ||
+ | * <code>[[git fetch origin]]</code> | ||
+ | * <code>[[git fetch --all]]</code> | ||
* <code>[[git fetch --dry-run]]</code> | * <code>[[git fetch --dry-run]]</code> | ||
* <code>[[git fetch --prune]]</code> | * <code>[[git fetch --prune]]</code> | ||
− | |||
* <code>[[git fetch -v]]</code> | * <code>[[git fetch -v]]</code> | ||
Line 19: | Line 21: | ||
git fetch https://github.com/zabbix/zabbix-docker.git | git fetch https://github.com/zabbix/zabbix-docker.git | ||
fatal: not a git repository (or any of the parent directories): .git | fatal: not a git repository (or any of the parent directories): .git | ||
+ | |||
+ | Solution: [[git clone]] | ||
+ | |||
+ | == Errors == | ||
+ | [[fatal: not a git repository (or any of the parent directories): .git]] | ||
Line 26: | Line 33: | ||
* <code>[[git merge]]</code> | * <code>[[git merge]]</code> | ||
* {{git get}} | * {{git get}} | ||
+ | * <code>[[git checkout]]</code> | ||
== Activities == | == Activities == | ||
Line 32: | Line 40: | ||
== See also == | == See also == | ||
* {{git fetch}} | * {{git fetch}} | ||
− | |||
− | |||
[[Category:Git]] | [[Category:Git]] |
Latest revision as of 12:45, 22 October 2024
git fetch
download objects and refs from another repository.
https://git-scm.com/docs/git-fetch
- git fetch --help
git fetch
git -C
git fetch origin
git fetch --all
git fetch --dry-run
git fetch --prune
git fetch -v
https://git-scm.com/docs/git-fetch
git fetch (no output)
git fetch https://github.com/zabbix/zabbix-docker.git fatal: not a git repository (or any of the parent directories): .git Solution: git clone
Contents
Errors[edit]
fatal: not a git repository (or any of the parent directories): .git
Related commands[edit]
Activities[edit]
- Read about the differences between
git pull
andgit fetch
: https://stackoverflow.com/questions/292357/what-is-the-difference-between-git-pull-and-git-fetch
See also[edit]
Advertising: