Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
docs: Fix Git capitalization.
Anders Kaseorg503127c2e935
diff --git a/docs/git/setup.md b/docs/git/setup.mdindex 6b0d87b17c4..e5e3e74170c 100644--- a/docs/git/setup.md+++ b/docs/git/setup.md@@ -31,7 +31,7 @@ We also highly recommend the following:## Get a graphical client-Even if you're comfortable using git on the command line, having a graphical+Even if you're comfortable using Git on the command line, having a graphicalclient can be useful for viewing your repository. This is especially truewhen doing complicated rebases and similar operations because you can checkthe state of your repository after each command to see what changed. Ifdiff --git a/docs/git/troubleshooting.md b/docs/git/troubleshooting.mdindex 150018a678f..deef5c7f224 100644--- a/docs/git/troubleshooting.md+++ b/docs/git/troubleshooting.md@@ -4,7 +4,7 @@ Git is a powerful yet complex version control system. Even for contributorsexperienced at using version control, it can be confusing. The good news isthat nearly all Git actions add information to the Git database, rather thanremoving it. As such, it's hard to make Git perform actions that you can't-undo. However, git can't undo what it doesn't know about, so it's a good+undo. However, Git can't undo what it doesn't know about, so it's a goodpractice to frequently commit your changes and frequently push your commits toyour remote repository.@@ -59,7 +59,7 @@ e5f8211 HEAD@{0}: pull upstream main: Merge made by the 'recursive' strategy.13bea0e HEAD@{1}: commit: test commit for docs.```-Reflog output will be long. The most recent git refs will be listed at the top.+Reflog output will be long. The most recent Git refs will be listed at the top.In the example above `e5f8211 HEAD@{0}:` is the merge commit made automaticallyby `git pull` and `13bea0e HEAD@{1}:` is the last commit I made before running`git pull`, the commit that I want to rollback to.@@ -81,7 +81,7 @@ committed, use `git reset --merge <commit>` instead.:::You can also use the relative reflog `HEAD@{1}` instead of the commit hash,-just keep in mind that this changes as you run git commands.+just keep in mind that this changes as you run Git commands.Now when you look at the output of `git reflog`, you should see that the tip of your branch points to yourlast commit `13bea0e` before the merge:@@ -145,10 +145,10 @@ $ git cherry-pick 67aea58create mode 100644 test4.txt```-## Recover from a git rebase failure+## Recover from a `git rebase` failureOne situation in which `git rebase` will fail and require you to intervene is-when your change, which git will try to re-apply on top of new commits from+when your change, which Git will try to re-apply on top of new commits fromwhich ever branch you are rebasing on top of, is to code that has been changedby those new commits.diff --git a/docs/git/using.md b/docs/git/using.mdindex ec0e8d2d4de..40aa6c5f072 100644--- a/docs/git/using.md+++ b/docs/git/using.md@@ -3,7 +3,7 @@## Know what branch you're working onWhen using Git, it's important to know which branch you currently have checked-out because most git commands implicitly operate on the current branch. You can+out because most Git commands implicitly operate on the current branch. You candetermine the currently checked out branch several ways.One way is with [git status][gitbook-git-status]:@@ -44,7 +44,7 @@ You can also configure [Bash][gitbook-other-envs-bash] andYou'll want to [keep your fork][github-help-sync-fork] up-to-date with changesfrom Zulip's main repositories.-**Note about git pull**: You might be used to using `git pull` on other+**Note about `git pull`**: You might be used to using `git pull` on otherprojects. With Zulip, because we don't use merge commits, you'll want to avoidit. Rather than using `git pull`, which by default is a shortcut for`git fetch && git merge FETCH_HEAD` ([docs][gitbook-git-pull]), you@@ -164,7 +164,7 @@ Untracked files:nothing added to commit but untracked files present (use "git add" to track)```-### Stage additions with git add+### Stage additions with `git add`To add changes to your staging area, use `git add <filename>`. Because`git add` is all about staging the changes you want to commit, you use@@ -212,7 +212,7 @@ Untracked files:nothing added to commit but untracked files present (use "git add" to track)```-### Stage deletions with git rm+### Stage deletions with `git rm`To remove existing files from your repository, use `git rm`([documentation][gitbook-rm]). This command can either stage the file for@@ -264,7 +264,7 @@ $ git reset HEAD test2.txtUnfortunately, you can't restore a file deleted with `git rm` if you didn't usethe `--cache` option. However, `git rm` only deletes files it knows about.-Files you have never added to git won't be deleted.+Files you have never added to Git won't be deleted.## Commit changes@@ -349,7 +349,7 @@ To [email protected]:christi3k/zulip.git* [new branch] issue-demo -> issue-demo```-If you want to see what git will do without actually performing the push, add+If you want to see what Git will do without actually performing the push, addthe `-n` (dry-run) option: `git push -n origin <branch-name>`. If everythinglooks good, re-run the push command without `-n`.diff --git a/docs/testing/linters.md b/docs/testing/linters.mdindex 8a03bbe1501..d47bfc34f1c 100644--- a/docs/testing/linters.md+++ b/docs/testing/linters.md@@ -72,7 +72,7 @@ you a lot of time, by automatically detecting linter errors as youmake them.:::-**Note:** The linters only check files that git tracks. Remember to `git add`+**Note:** The linters only check files that Git tracks. Remember to `git add`new files before running lint checks.Our linting tools generally support the ability to lint filesdiff --git a/docs/testing/mypy.md b/docs/testing/mypy.mdindex bdc0e2ee5f5..e4d73e3469c 100644--- a/docs/testing/mypy.md+++ b/docs/testing/mypy.md@@ -504,7 +504,7 @@ unfortunately give up some type safety by falling back to## Troubleshooting adviceAll of our linters, including mypy, are designed to only check files-that have been added in git (this is by design, since it means you+that have been added in Git (this is by design, since it means youhave untracked files in your Zulip checkout safely). So if you get a`mypy` error like this after adding a new file that is referenced bythe existing codebase:diff --git a/tools/documentation_crawler/documentation_crawler/spiders/common/spiders.py b/tools/documentation_crawler/documentation_crawler/spiders/common/spiders.pyindex 00cf15faf9d..ea44fe18548 100644--- a/tools/documentation_crawler/documentation_crawler/spiders/common/spiders.py+++ b/tools/documentation_crawler/documentation_crawler/spiders/common/spiders.py@@ -93,7 +93,7 @@ class BaseDocumentationSpider(scrapy.Spider):if url.startswith(ZULIP_SERVER_GITHUB_FILE_URL_PREFIX) or url.startswith(ZULIP_SERVER_GITHUB_DIRECTORY_URL_PREFIX):- # We can verify these links directly in the local git repo without making any requests to GitHub servers.+ # We can verify these links directly in the local Git repo without making any requests to GitHub servers.return Falseif "github.com/zulip" in url:# We want to check these links but due to rate limiting from GitHub, these checks oftendiff --git a/tools/lib/provision_inner.py b/tools/lib/provision_inner.pyindex 9a87c434cc3..fdc50d59971 100755--- a/tools/lib/provision_inner.py+++ b/tools/lib/provision_inner.py@@ -166,7 +166,7 @@ def need_to_run_build_timezone_data() -> bool:def need_to_run_compilemessages() -> bool:if not os.path.exists("locale/language_name_map.json"):- # User may have cleaned their git checkout.+ # User may have cleaned their Git checkout.print("Need to run compilemessages due to missing language_name_map.json")return True