Easy-to-follow video tutorials help you learn software, creative, and business skills.Become a member
Hg repositories live in the same directory with the files. Unlike Subversion, Perforce, and TFS, there is no separate repository directory. Like Git, this makes it possible for you to backup the entire directory, say, with zip and not only back up your files, but also back up all the version control metadata in a single place. So first, let's create the directory. I'll call it hg1, then we'll CD to hg1, and we'll do hg init.
Like Git, Hg stores all of its metadata in a hidden directory here called .hg. If we run hg status, unlike Git, we don't see any message because there's nothing going in our repository. If you haven't properly initialized the repository and you ran hg status, you we'll get an error message telling you that no repository was found. Since we got just a blank response, we know we're all good to go. Let's move on to creating some files and checking in and checking out.
Get unlimited access to all courses for just $25/month.Become a member
61 Video lessons · 92390 Viewers
82 Video lessons · 104121 Viewers
71 Video lessons · 75539 Viewers
56 Video lessons · 106928 Viewers
Access exercise files from a button right under the course name.
Search within course videos and transcripts, and jump right to the results.
Remove icons showing you already watched videos if you want to start over.
Make the video wide, narrow, full-screen, or pop the player out of the page into its own window.
Click on text in the transcript to jump to that spot in the video. As the video plays, the relevant spot in the transcript will be highlighted.
Your file was successfully uploaded.