# 使用 Git

使用 Git 从计算机管理 GitHub 存储库。

## Links

* [关于 Git](/zh/enterprise-server@3.22/get-started/using-git/about-git)

  了解版本控制系统 Git，以及它如何与 GitHub 配合工作。

* [推送提交到远程仓库](/zh/enterprise-server@3.22/get-started/using-git/pushing-commits-to-a-remote-repository)

  使用 git push 将本地分支上的提交推送到远程存储库。

* [从远程仓库获取更改](/zh/enterprise-server@3.22/get-started/using-git/getting-changes-from-a-remote-repository)

  您可以使用常用 Git 命令访问远程仓库。

* [处理非快进错误](/zh/enterprise-server@3.22/get-started/using-git/dealing-with-non-fast-forward-errors)

  有时，Git 无法在不丢失提交的情况下对远程仓库进行更改。 发生此情况时，推送会被拒绝。

* [将子文件夹拆分为新存储库](/zh/enterprise-server@3.22/get-started/using-git/splitting-a-subfolder-out-into-a-new-repository)

  您可以将 Git 仓库内的文件夹变为全新的仓库。

* [关于 Git 子树合并](/zh/enterprise-server@3.22/get-started/using-git/about-git-subtree-merges)

  如果需要管理单个存储库中的多个项目，可以使用子树合并来处理所有引用。

* [关于 Git 变基](/zh/enterprise-server@3.22/get-started/using-git/about-git-rebase)

  git rebase 命令使您能够轻松更改一系列提交，修改仓库历史。 您可以重新排序、编辑提交或将提交压缩到一起。

* [在命令行中使用 Git rebase](/zh/enterprise-server@3.22/get-started/using-git/using-git-rebase-on-the-command-line)

  以下是在命令行中使用 git rebase 的简短教程。

* [解决 Git 变基后的合并冲突](/zh/enterprise-server@3.22/get-started/using-git/resolving-merge-conflicts-after-a-git-rebase)

  执行 git rebase 操作时，通常会移动提交。 因此，您可能会陷入出现合并冲突的情况。 这意味着您的两个提交修改了同一个文件中的同一行，而 Git 不知道要应用哪个更改。

* [处理分支和标记名称中的特殊字符](/zh/enterprise-server@3.22/get-started/using-git/dealing-with-special-characters-in-branch-and-tag-names)

  Git 对分支和标签名称中允许的字符限制较少。 从命令行 shell 使用 Git 时，可能需要对特殊字符进行转义或引用。

* [/troubleshooting-the-2-gb-push-limit](/zh/enterprise-server@3.22/troubleshooting-the-2-gb-push-limit)