How to create a Git repository with git init, GitHub and Git GUI tools

preview_player
Показать описание
How do you create a git repository?

Well, you first have to install Git. So get Git installed, it's super easy to do.

Then, just create a folder on your filesystem where you want to create the git repository, right click on the folder and select "Open Git Bash here"

In the command window, type git init, and boom! You've created a git repo.

If you want to even dig around, there's a hidden folder in your project named .git which is where git stores all of its information as it manages the index, tracks commits, connects to remote repos and fetches and pulls updates.

This example also shows how to create a git repo on GitHub and clone it locally, and finally I show you how to use Git Gui to create a git repo just in case you prefer not to run git commands in the terminal window all the time.

Full write up on how to do this is here:

0:00 What is a git repo?
0:35 Five second Git install
0:56 Create Git project folder
1:30 Git Bash
1:50 Git init command
2:05 How to create Git repo
2:20 Explore new git repo
6:42 Intro to GitHub
7:02 Create GitHub repo
8:17 GitHub URL
9:01 Clone GitHub repo
10:58 Git GUI Tool
11:27 Create Git repo in GitGui
13:03 Final words on Git repository
Рекомендации по теме