mirror of
https://github.com/mike-rambil/Advanced-Git.git
synced 2026-05-24 17:38:48 -05:00
1.4 KiB
1.4 KiB
Git Command Reference (Full List)
A comprehensive list of Git commands used in this project.
A comprehensive list of Git commands used in this project, formatted according to our standard.
Subcommands
git init --bare
Initialize a bare repository, typically used for remote repositories.
Command
git init --bare my-repo.git
Examples
- Create a bare repository for collaboration.
git init --bare my-repo.git
Steps
- Run
git init --bare my-repo.gitto create a bare repository.
Tags
init, bare, repository
Author
mike-rambil
Last Updated
2024-06-10
git clone --mirror
Clone a repository in mirror mode, including all refs and branches.
Command
git clone --mirror https://github.com/example/repo.git
Examples
- Create a full backup or migration of a repository.
git clone --mirror https://github.com/example/repo.git
Steps
- Run
git clone --mirror <repository>to create a full backup or migration.
Tags
clone, mirror, backup
Author
mike-rambil
Last Updated
2024-06-10
Author: mike-rambil • Updated: 2024-06-10 • Tags: reference, all-commands