Git Init - Create an empty Git repository | Git Tutorial

Pubblicato il: 24 luglio 2022
sul canale di: Knowledge Thrusters
4,720
18

In this git tutorial, i will show you git init command. Git init command creates an empty Git repository - basically a .git directory with subdirectories for objects, refs/heads, refs/tags, and template files. An initial branch without any commits will be created (see the --initial-branch option below for its name).

Syntax
git init

Running git init in an existing repository is safe. It will not overwrite things that are already there. The primary reason for rerunning git init is to pick up newly added templates (or to move the repository to another place if --separate-git-dir is given).

Documentation:
https://git-scm.com/docs/git-init


$ cd /path/to/my/codebase
$ git init (1)
$ git add . (2)
$ git commit (3)

#git #knowledgethrusters #github #gitbash


In questa pagina del sito puoi guardare il video online Git Init - Create an empty Git repository | Git Tutorial della durata di ore minuti seconda in buona qualità , che l'utente ha caricato Knowledge Thrusters 24 luglio 2022, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 4,720 volte e gli è piaciuto 18 spettatori. Buona visione!