When defining a new site in Dreamweaver, the Site Setup dialog box automatically recognizes an existing local Git repository. If a local repository hasn't yet been created, the Site Setup dialog box has options to initialize one, or to clone one from a remote repository at the same time as defining the site. Alternatively, you can initialize a local Git repository from the Git view in the Files panel.
- [Instructor] Before you can start tracking…changes to your files, you need to initialize…a Git repository.…If you've already been working with Git,…Dreamweaver automatically recognizes the repository…if it's in your site root folder.…But for sites that aren't yet version-controlled with Git,…Dreamweaver offers two ways of initializing a repository.…One for a brand new site, the other for an existing one.…We'll look at both.…First, let's see how to do it for a new site.…So I'm going to go to Site, New Site,…call it simply New Site in the Local Site folder,…we need to select that.…
I'm going to go to my desktop and create a new folder…called New Site.…Select that, and then in the site setup dialog box,…we've got this checkbox here,…Associate a Git Repository with this site.…Now, of course, you must have installed Git…on your local computer to be able to use this.…If you haven't yet done so, go back to the video…for your operating system earlier in this chapter.…But selecting this checkbox then gives you two more options,…
- Why use Git in Dreamweaver CC?
- Installing Git on Windows and macOS
- Setting Git preferences
- Working with a local repository
- Staging and committing files
- Modifying files
- Creating a branch
- Rolling back
- Working with remote repositories