---
name: "git-setup"
section: "1"
platform: "linux"
package: "git-extras"
version: "7.3.0-1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/git-setup"
---

# git-setup(1)

Set up a git repository

## NAME

**git-setup** - Set up a git repository

## SYNOPSIS

**git-setup** \[\<directory\>\]

## DESCRIPTION

Set up a git repository if one doesn't exist, add all files and make an initial commit.

## OPTIONS

\<directory\>

The name of a new directory to setup. By default, the current working directory.

## EXAMPLES

```
$ git setup path/to/repository
```

## AUTHOR

Written by Aggelos Orfanakos \<*agorf@agorf.gr*\>

## REPORTING BUGS

\<*https://github.com/tj/git-extras/issues*\>

## SEE ALSO

\<*https://github.com/tj/git-extras*\>
