Files
cheatsheet-tldr/tldr/git-setup
2025-12-31 00:22:26 +00:00

19 lines
476 B
Plaintext

---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# git setup
> Create a Git repository in a directory and commit all files.
> Part of `git-extras`.
> More information: <https://github.com/tj/git-extras/blob/main/Commands.md#git-setup>.
- Create a Git repository in the current directory and commit all files:
`git setup`
- Create a Git repository in a specific directory and commit all files:
`git setup {{path/to/directory}}`