Creating a repository and a project


show more Creating a repository and a project provides you with in-depth training on Developer. Taught by Michael Lehman as part of the Fundamentals of Software Version Control show less
please wait ...

Creating a repository and a project

All right, let's create a Git repository. Git repositories, unlike TFS and Subversion, actually live in the directory with your files. There is no separate repository directory. All right, so let's create a directory to store our Source Code files. We'll create mkdir g1, then we'll put CD into there, and we'll say git init. That initializes that empty repository. We can validate it by saying git status, and it says nothing to commit, and that's all there is to creating a Git repository.

If we do git dir/a, you can see that there is a hidden directory here called .git, where all of the metadata is stored. What's important is that if you want to backup a Git repository with all the history, you backup the entire directory here with all your Source Code files, including this .git folder. So depending on the compression tool you're using, make sure that after you've made the ZipBackup or the 7zbackup that, that folder is actually in your archive. And that's it, th...

Creating a repository and a project
Video duration: 1m 6s 2h 55m Intermediate

Viewers:

Creating a repository and a project provides you with in-depth training on Developer. Taught by Michael Lehman as part of the Fundamentals of Software Version Control

Subject:
Developer
Software:
Git Mercurial ALM/TFS Perforce
Author:
please wait ...