Skip to content

Instantly share code, notes, and snippets.

@oojewale
Last active September 4, 2016 13:20
Show Gist options
  • Save oojewale/ea620dbbbbe1cd165aeca334e41b4227 to your computer and use it in GitHub Desktop.
Save oojewale/ea620dbbbbe1cd165aeca334e41b4227 to your computer and use it in GitHub Desktop.
Git Init

GIT INIT

Command: git init

This command creates an empty git repository.

If you're developing on your computer, running this command in the directory of the project you're working on would create an empty git repository there.

This implies that you can start using git within that directory i.e for that project.

This command can also reinitialize an existing git repository.

After intiliazing the repository in your current project, it creates a default local master branch which your project would be on automatically.

This [resource] (https://git-scm.com/docs/git-init) is helpful if you want to dig deeper.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment