summaryrefslogtreecommitdiff
path: root/Documentation/gitfaq.txt
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2020-05-13 19:19:19 (GMT)
committerJunio C Hamano <gitster@pobox.com>2020-05-13 19:19:19 (GMT)
commit94afbbb8de3d6a80602e7e27d559d2bdeffb0be4 (patch)
tree5450b8fad987d30af7862a62e37e7c8ad9dca12a /Documentation/gitfaq.txt
parent658624209a40ffae38ae4ea4d62e8fe3b891d5fd (diff)
parentf4d7bccdb40b33792b6c22f60bbed92eef8aecf8 (diff)
downloadgit-94afbbb8de3d6a80602e7e27d559d2bdeffb0be4.zip
git-94afbbb8de3d6a80602e7e27d559d2bdeffb0be4.tar.gz
git-94afbbb8de3d6a80602e7e27d559d2bdeffb0be4.tar.bz2
Merge branch 'ss/faq-fetch-pull'
Random bits of FAQ. * ss/faq-fetch-pull: gitfaq: fetching and pulling a repository
Diffstat (limited to 'Documentation/gitfaq.txt')
-rw-r--r--Documentation/gitfaq.txt8
1 files changed, 8 insertions, 0 deletions
diff --git a/Documentation/gitfaq.txt b/Documentation/gitfaq.txt
index 11d9bac..370d62d 100644
--- a/Documentation/gitfaq.txt
+++ b/Documentation/gitfaq.txt
@@ -233,6 +233,14 @@ I asked Git to ignore various files, yet they are still tracked::
and add a pattern to `.gitignore` that matches the <file>.
See linkgit:gitignore[5] for details.
+[[fetching-and-pulling]]
+How do I know if I want to do a fetch or a pull?::
+ A fetch stores a copy of the latest changes from the remote
+ repository, without modifying the working tree or current branch.
+ You can then at your leisure inspect, merge, rebase on top of, or
+ ignore the upstream changes. A pull consists of a fetch followed
+ immediately by either a merge or rebase. See linkgit:git-pull[1].
+
Hooks
-----