Balu
Balu Platform Engg. | Devops | Monitoring | CICD | ODD | SQL/NoSQL | ELK | AWS | Jhipster | Microservices | Agile | Scrum

Git - Init

Git - Init

Git Init

git init, to initiate the current directory to connect to the version controlling system or any git server

1
git init

O/P : Initialized empty Git repository in /home/user/current/directory-test

  • After initializing the repository, it will create the hidden folder in the directory /home/user/current/directory-test.
  • To view hidden fine in direct Ctrl + H
  • Directory file structure looks like this
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
---
root
    branch/
    config
    description
    HEAD
    hooks/
        applypatch-msg.sample
        commit-msg.sample
        fsmonitor-watchman.sample
        post-update.sample
        pre-applypatch.sample
        pre-commit.sample
        prepare-commit-msg.sample
        pre-push.sample
        pre-rebase.sample
        pre-receive.sample
        update.sample
    info/
        exclude
    objects/
        info/
        pack/
    refs/
        heads/
        tags/

comments powered by Disqus