Lecture # 3 - Setup Git Repository Locally
How to create a local git repository. Git Configuration.
Table of contents
Setting up Local Git Repository:
Follow these steps to create a local repository.
Navigate to the directory that you want to initialize the git repository using the
cd
command.
-
Now use
git init
to initialize your directory to git repository. A hidden.git
folder will be created after you run the command. Usels -a
to see the hidden folder.Now our local directory is initialized as a local git repository.
Git Configuration:
git config --global user.name "name"
git config --global user.email "email"
git config --list #TO LIST THE GIT CONFIGURATIONS