Skip to content

Commit 94afbbb

Browse files
committed
Merge branch 'ss/faq-fetch-pull'
Random bits of FAQ. * ss/faq-fetch-pull: gitfaq: fetching and pulling a repository
2 parents 6586242 + f4d7bcc commit 94afbbb

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

Documentation/gitfaq.txt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -233,6 +233,14 @@ I asked Git to ignore various files, yet they are still tracked::
233233
and add a pattern to `.gitignore` that matches the <file>.
234234
See linkgit:gitignore[5] for details.
235235

236+
[[fetching-and-pulling]]
237+
How do I know if I want to do a fetch or a pull?::
238+
A fetch stores a copy of the latest changes from the remote
239+
repository, without modifying the working tree or current branch.
240+
You can then at your leisure inspect, merge, rebase on top of, or
241+
ignore the upstream changes. A pull consists of a fetch followed
242+
immediately by either a merge or rebase. See linkgit:git-pull[1].
243+
236244
Hooks
237245
-----
238246

0 commit comments

Comments
 (0)