From 5607b37f979b7786d127eff1b8949f6eb161ef5a Mon Sep 17 00:00:00 2001 From: Ganna Zhyrnova <112796922+gannazhyrnova@users.noreply.github.com> Date: Wed, 13 Mar 2024 16:06:44 +0200 Subject: [PATCH 1/2] git_pull_vs_git_fetch.md Grammar check --- docs/gemstones/git/git_pull_vs_git_fetch.md | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/docs/gemstones/git/git_pull_vs_git_fetch.md b/docs/gemstones/git/git_pull_vs_git_fetch.md index 0e38ee7882..42054fac72 100644 --- a/docs/gemstones/git/git_pull_vs_git_fetch.md +++ b/docs/gemstones/git/git_pull_vs_git_fetch.md @@ -1,7 +1,7 @@ --- title: Using git pull and git fetch author: Wale Soyinka -contributors: +contributors: Ganna Zhyrnova tags: - Git - git pull @@ -10,17 +10,17 @@ tags: ## Introduction -This Gemstone explains the differences between `git pull` and `git fetch` commands. It also outlines when to appropriately use each command. +This Gemstone explains the differences between `git pull` and `git fetch` commands. It also outlines when to use each command appropriately. ## Git Fetch vs Git Pull ### Git Fetch -git fetch downloads changes from a remote repository, but doesn't integrate them into your local branch. +git fetch downloads changes from a remote repository but doesn't integrate them into your local branch. -It is especially useful for seeing what others have committed without merging those changes into your local branch. +Seeing what others have committed without merging those changes into your local branch is beneficial. -1. List the currently checked out branch +1. List the currently checked-out branch ``` git branch ``` @@ -28,7 +28,7 @@ It is especially useful for seeing what others have committed without merging th ``` git fetch origin main ``` -3. Compare the changes beween the HEAD of your local repo and remote origin/main repo. +3. Compare the changes between the HEAD of your local repo and the remote origin/main repo. ``` git log HEAD..origin/main ``` @@ -36,7 +36,7 @@ It is especially useful for seeing what others have committed without merging th ### Git Pull Git Pull downloads changes and merges them into your current branch. -Useful for quickly updating your local branch with changes from the remote repository. +It is useful for quickly updating your local branch with changes from the remote repository. 1. Pull and Merge Changes**: ``` @@ -59,4 +59,4 @@ Useful for quickly updating your local branch with changes from the remote repos ## Conclusion -Understanding the distinctions between `git fetch` and `git pull` is vital for effective Git workflow management. It is important to choose the right command based on your requirements when working or colloborating via version control systems like github, git, gitlab, gitea and so on. \ No newline at end of file +Understanding the distinctions between `git fetch` and `git pull` is vital for effective Git workflow management. Choosing the right command based on your requirements is important when working or collaborating via version control systems like GitHub, GitHub, GitHub Labs, Gitea, etc. From 2e69e967f6a04ea7479d7e1c10ab88139558b890 Mon Sep 17 00:00:00 2001 From: Antoine Le Morvan Date: Wed, 13 Mar 2024 15:42:52 +0100 Subject: [PATCH 2/2] Update docs/gemstones/git/git_pull_vs_git_fetch.md --- docs/gemstones/git/git_pull_vs_git_fetch.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/gemstones/git/git_pull_vs_git_fetch.md b/docs/gemstones/git/git_pull_vs_git_fetch.md index 42054fac72..2d9fb936fb 100644 --- a/docs/gemstones/git/git_pull_vs_git_fetch.md +++ b/docs/gemstones/git/git_pull_vs_git_fetch.md @@ -59,4 +59,4 @@ It is useful for quickly updating your local branch with changes from the remote ## Conclusion -Understanding the distinctions between `git fetch` and `git pull` is vital for effective Git workflow management. Choosing the right command based on your requirements is important when working or collaborating via version control systems like GitHub, GitHub, GitHub Labs, Gitea, etc. +Understanding the distinctions between `git fetch` and `git pull` is vital for effective Git workflow management. Choosing the right command based on your requirements is important when working or collaborating via version control systems like GitHub, GitLab, Gitea, etc.