Working with git repositories
Examples of git commands to work with repositories.
Get the repository status
git status
Initialize a repository
git init
Initialize a bare repository
A bare repository contains only a .git directory. Bare repositories can be used on git servers and/or with git hooks.
git init --bare
Clone a remote repository
Clone branch targetBranch of the remoteRepository into targetDirectory:
git clone -b targetBranch remoteRepositoryUrl targetDirectory