| CARVIEW |
Select Language
HTTP/2 301
access-control-allow-origin: *
content-security-policy: default-src 'none';prefetch-src 'self';connect-src 'self';font-src 'self' data:;img-src 'self' github.com *.github.com *.githubusercontent.com *.githubassets.com data: placehold.it;object-src 'self';script-src 'self' github.com *.github.com *.githubusercontent.com *.githubassets.com 'self' data: 'unsafe-inline';script-src-attr 'self';frame-src 'self' github.com *.github.com *.githubusercontent.com *.githubassets.com https://support.github.com https://www.youtube-nocookie.com;frame-ancestors 'self' github.com *.github.com *.githubusercontent.com *.githubassets.com;style-src 'self' github.com *.github.com *.githubusercontent.com *.githubassets.com 'self' 'unsafe-inline' data:;child-src 'self';manifest-src 'self';upgrade-insecure-requests;base-uri 'self';form-action 'self'
cross-origin-opener-policy: same-origin
cross-origin-resource-policy: same-origin
origin-agent-cluster: ?1
referrer-policy: no-referrer-when-downgrade
x-content-type-options: nosniff
x-dns-prefetch-control: off
x-download-options: noopen
x-frame-options: SAMEORIGIN
x-permitted-cross-domain-policies: none
x-xss-protection: 0
cache-control: public, max-age=60
location: /en/get-started/git-basics
content-type: text/plain; charset=utf-8
x-github-backend: Kubernetes
x-github-request-id: 2773:2A24E6:475E3E:61B420:6953506D
accept-ranges: bytes
age: 0
date: Tue, 30 Dec 2025 04:09:17 GMT
via: 1.1 varnish
x-served-by: cache-bom-vanm7210044-BOM
x-cache: MISS
x-cache-hits: 0
x-timer: S1767067757.669936,VS0,VE983
vary: Accept
strict-transport-security: max-age=31557600
content-length: 60
HTTP/2 200
access-control-allow-origin: *
content-security-policy: default-src 'none';prefetch-src 'self';connect-src 'self';font-src 'self' data:;img-src 'self' github.com *.github.com *.githubusercontent.com *.githubassets.com data: placehold.it;object-src 'self';script-src 'self' github.com *.github.com *.githubusercontent.com *.githubassets.com 'self' data: 'unsafe-inline';script-src-attr 'self';frame-src 'self' github.com *.github.com *.githubusercontent.com *.githubassets.com https://support.github.com https://www.youtube-nocookie.com;frame-ancestors 'self' github.com *.github.com *.githubusercontent.com *.githubassets.com;style-src 'self' github.com *.github.com *.githubusercontent.com *.githubassets.com 'self' 'unsafe-inline' data:;child-src 'self';manifest-src 'self';upgrade-insecure-requests;base-uri 'self';form-action 'self'
cross-origin-opener-policy: same-origin
cross-origin-resource-policy: same-origin
origin-agent-cluster: ?1
referrer-policy: no-referrer-when-downgrade
x-content-type-options: nosniff
x-dns-prefetch-control: off
x-download-options: noopen
x-frame-options: SAMEORIGIN
x-permitted-cross-domain-policies: none
x-xss-protection: 0
cache-control: public, max-age=60
x-powered-by: Next.js
content-type: text/html; charset=utf-8
x-github-backend: Kubernetes
x-github-request-id: DF8E:1F62F7:36C0524:4C6FB14:69526A2A
content-encoding: gzip
accept-ranges: bytes
age: 58946
date: Tue, 30 Dec 2025 04:09:17 GMT
via: 1.1 varnish
x-served-by: cache-bom-vanm7210044-BOM
x-cache: HIT
x-cache-hits: 0
x-timer: S1767067758.666512,VS0,VE1
vary: Accept-Encoding
strict-transport-security: max-age=31557600
content-length: 20124
Git basics - GitHub Docs
Skip to main content
GitHub Docs
Search or ask Copilot
Select language: current language is English
Search or ask Copilot
Open menu
Open Sidebar
Git basics
Set up Git, a distributed version control system, to manage your GitHub repositories from your computer.
- Set up Git
- Setting your username in Git
- Caching your GitHub credentials in Git
- Why is Git always asking for my credentials?
- Updating credentials from the macOS Keychain
- Git workflows
- About remote repositories
- Managing remote repositories
- Associating text editors with Git
- Configuring Git to handle line endings
- Ignoring files
- Git cheatsheet