> For the complete documentation index, see [llms.txt](https://asafahmadov.gitbook.io/cloud-and-devops/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://asafahmadov.gitbook.io/cloud-and-devops/devops-bootcamp/version-control-with-git/initialize-a-git-project-locally.md).

# Initialize a Git project locally

&#x20;  ▪ If we have already an existing project locally, we can initialize a git repository with "git init" .Then we can push it to GitLab/GitHub/...

```bash
git init # This creates a hidden folder, .git, which contains the plumbing needed for Git to work.
```

![](https://2601183865-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F8QpIzz6VwCOTMwaqKYa3%2Fuploads%2F3L997DoeVXlY0q6ITBC1%2FScreen%20Shot%202022-05-11%20at%2022.28.50.png?alt=media\&token=7123a4d9-e926-427d-b2b8-7e44d4502050)
