Setup repository
Understand how to get setup a repository.
Initialize a new Git repo
To create a repo, you will use the git init
command to initialize a new git repository. Do take note that git init
is just a one-time command process. You will only use it when you want to initialize a new Git repo.
-
Create a folder
-
Initialize a Git repository
- As a result, Git knows that the folder you initiated it on should be monitored.
- It will also create a hidden folder named
.git/
to keep track of all the changes you made.
Clone an existing repo
If your project already been setup on centralized server like GitHub, Bitbucket, etc. Then you have to clone that remote repository to your local. Do take note that git clone
is also just a one-time command process. You will only use it when you want to clone an existing repository.