{"meta":{"title":"Git basics","intro":"Set up Git, a distributed version control system, to manage your GitHub repositories from your computer.","product":"Get started","breadcrumbs":[{"href":"/en/get-started","title":"Get started"},{"href":"/en/get-started/git-basics","title":"Git basics"}],"documentType":"category"},"body":"# Git basics\n\nSet up Git, a distributed version control system, to manage your GitHub repositories from your computer.\n\n## Links\n\n* [Set up Git](/en/get-started/git-basics/set-up-git)\n\n  At the heart of GitHub is an open-source version control system (VCS) called Git. Git is responsible for everything GitHub-related that happens locally on your computer.\n\n* [Setting your username in Git](/en/get-started/git-basics/setting-your-username-in-git)\n\n  Git uses a username to associate commits with an identity. The Git username is not the same as your GitHub username.\n\n* [Caching your GitHub credentials in Git](/en/get-started/git-basics/caching-your-github-credentials-in-git)\n\n  If you're cloning GitHub repositories using HTTPS, we recommend you use GitHub CLI or Git Credential Manager (GCM) to remember your credentials.\n\n* [Why is Git always asking for my credentials?](/en/get-started/git-basics/why-is-git-always-asking-for-my-credentials)\n\n  If Git prompts you for your credentials every time you try to interact with GitHub, you're probably using the HTTPS clone URL for your repository.\n\n* [Updating credentials from the macOS Keychain](/en/get-started/git-basics/updating-credentials-from-the-macos-keychain)\n\n  You'll need to update your saved credentials in the git-credential-osxkeychain helper if you change your username, password, or personal access token on GitHub.\n\n* [Git workflows](/en/get-started/git-basics/git-workflows)\n\n  GitHub flow is a lightweight, branch-based workflow that supports teams and projects that deploy regularly.\n\n* [About remote repositories](/en/get-started/git-basics/about-remote-repositories)\n\n  GitHub's collaborative approach to development depends on publishing commits from your local repository to GitHub for other people to view, fetch, and update.\n\n* [Managing remote repositories](/en/get-started/git-basics/managing-remote-repositories)\n\n  Learn to work with your local repositories on your computer and remote repositories hosted on GitHub.\n\n* [Associating text editors with Git](/en/get-started/git-basics/associating-text-editors-with-git)\n\n  Use a text editor to open and edit your files with Git.\n\n* [Configuring Git to handle line endings](/en/get-started/git-basics/configuring-git-to-handle-line-endings)\n\n  To avoid problems in your diffs, you can configure Git to properly handle line endings.\n\n* [Ignoring files](/en/get-started/git-basics/ignoring-files)\n\n  You can configure Git to ignore files you don't want to check in to GitHub.\n\n* [Git cheatsheet](/en/get-started/git-basics/git-cheatsheet)\n\n  This Git cheat sheet is a time saver when you forget a command or don't want to use help in the CLI."}