Learn about how one of the main advantages of using Git inside Dreamweaver is that it makes it possible to maintain an existing website while working on a new version, without the need to make duplicate copies of each file. This video also explains the difference between distributed and centralized version-control systems.
You can roll back to previous versions of files allowing you to undo mistakes or changes that didn't work out the way you'd hoped. You can also create branches allowing you to work on a development or experimental version of your files without affecting your local copy of your live website. Git is what is known as a distributed version control system. So, what does that mean? Version control systems can be either centralized or distributed. In a centralized system, there's a central repository that stores details of all files and changes made to them.
To store a new version of a file, you send it to central repository. But if you're working with a team, the other team members need to check out the latest version of the site before they can work on it. This is similar to the check in, check out feature that's been part of Dreamweaver for many years. Although many centralized systems are more flexible by allowing more than one person at a time to work on files. By contract, a distributed version control system uses local repositories.
In other words, on your local hard disk. In a team setup, there still needs to be a central repository. Individual team members upload their files to the central repository on a regular basis and if necessary, reconcile differences. But what if you work on your own, you can simply work with your local repository. You don't even need to have a central repository. However, it can be useful to use a remote service such as Git Hub or Fit Bucket. Not only does this give you an online backup, but you can also clone or fork, in other words, copy files that are made publicly available by other developers.
So incorporating Git version control at your Dreamweaver work flow is just as relevant to individuals as to developers working in teams. To use Git in Dreamweaver, you must be running Adobe Dreamweaver CC 2017.5 or later. You must also install Git separately. It's not embedded in Dreamweaver. This has been done deliberately to avoid problems with changes to Git. Adobe learned a painful lesson with a different version control system called Subversion, that was embedded in Dreamweaver CS4.
It was a cut down version lacking important features. Worse, it was incompatible with the most recent release of Subversion and it took a long time before it could be updated inside Dreamweaver. With Git however, Dreamweaver simply hooks into your local installation. It also works with any remote Git repository including Git Hub and Fit Bucket. Dreamweaver provides a simple and intuitive user interface to Git making it much more user friendly for designers.
Git is normally a command line program with many, often confusing commands. Dreamweaver removes all that complexity, but you still got direct access to the Git command line from within Dreamweaver. This is not only useful to advanced users, it future proofs Git integration, if Git adds new features not covered by the Dreamweaver user interface.
- 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