Difference between revisions of "Git fetch"
Jump to navigation
Jump to search
(11 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
{{lowercase}} | {{lowercase}} | ||
− | + | <code>[[git fetch]]</code> download objects and [[refs]] from another repository. | |
+ | https://git-scm.com/docs/git-fetch | ||
* <code>git fetch</code> | * <code>git fetch</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 | + | * <code>[[git fetch --prune]]</code> |
* <code>[[git fetch -v]]</code> | * <code>[[git fetch -v]]</code> | ||
Line 11: | Line 14: | ||
https://git-scm.com/docs/git-fetch | https://git-scm.com/docs/git-fetch | ||
+ | |||
+ | git fetch | ||
+ | (no output) | ||
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]] | ||
Line 19: | Line 27: | ||
* <code>[[git pull]]</code> | * <code>[[git pull]]</code> | ||
* <code>[[git fetch upstream]]</code> | * <code>[[git fetch upstream]]</code> | ||
+ | * <code>[[git merge]]</code> | ||
* {{git get}} | * {{git get}} | ||
+ | * <code>[[git checkout]]</code> | ||
+ | |||
+ | == Activities == | ||
+ | * Read about the differences between <code>[[git pull]]</code> and <code>[[git fetch]]</code>: https://stackoverflow.com/questions/292357/what-is-the-difference-between-git-pull-and-git-fetch | ||
== See also == | == See also == |
Latest revision as of 12:07, 6 February 2023
git fetch
download objects and refs from another repository.
https://git-scm.com/docs/git-fetch
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
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]
git fetch, --all
git
: [config | init | status ]
,git add
,git rm
,git commit
,git push, git pull
,.gitconfig
,.gitignore
,git
(clone
,fetch
,pull
),git tag
,git log
,git blame
, Merge Request, LFS,git branch
,git apply
,git rebase
,git diff
,git diff-tree
,git config --global
,remote | submodule | request-pull
,GIT_TRACE, GIT_CURL_VERBOSE
,clean
,main
,git show-ref
,git reset
,git prune
,git ls-remote origin
,git checkout
,git switch
,pathspec
,git credential-osxkeychain
,git version
,pre-commit
,git --help
, GitBook,refs/
git
, GitHub, GitLab, Gerrit, TeamCity, Jenkins, CircleCI, Bitbucket, AWS Codecommit
Advertising: