Refactor Git docs

Problem to solve

Our Git documentation has grown organically over time, and it's time to look at the entire suite of Git documentation at https://docs.gitlab.com/ee/topics/git/ and make sure it's a good resource for our customers that use Git regularly with GitLab.

Further details

Our current Git documentation is located in the following locations the gitlab project:

Our current Git menu structure is:

Screenshot_2024-06-19_at_2.25.51_PM

Proposal

To ensure that our Git documentation is a coherent whole, and is easily navigable and searchable, this issue proposes:

  1. Have (or create) these pages (existing relevant pages in brackets):
  2. Create a separate reference page (probably this: https://docs.gitlab.com/ee/gitlab-basics/start-using-git.html because we already have a new get_started.md page) for all the commands we're using, and cross link to it. The page should be structured like the Reference page template.
  3. Incorporate content from these pages and remove them:
  4. Move these files around to be together in a single directory in the docs suite.

Reference page template

# Git commands

Learn more about the most commonly used Git commands.

## `git add`

Use `git add` to do xyz.

### Example

code here

For more information, see ... (link).

## `git commit`

Use `git commit` to do ...

### Example

code here

For more information, see .. (link).

Who can address the issue

Members of the Technical Writing Team

Edited by Evan Read