A .gitignore file excludes files and folders from tracking. When initializing a local repository, Dreamweaver automatically creates a .gitignore file with default settings to exclude Dreamweaver Design Notes, bower components, and Node modules. This video shows you how to add other files and folders to .gitignore through the context menu in the Files panel.
- [Instructor] Git's role is to…track changes to text-based files.…It won't actually stop you adding binary files,…such as images, Word documents, or PDFs to your repository,…but there's no real point doing so because Git is incapable…of tracking changes in binary files.…To avoid Git constantly reminding you about…files and folders that aren't being tracked,…you can tell it to ignore them by adding them to .gitignore.…Let's start by taking a look at the version of .gitignore…that Dreamweaver created for us when we…initialized the Git repository.…
So in the files panel, double-click .gitignore…to open it in the document window.…It's a text file.…The first three lines begin with a…hash or pound sign, indicating that they're comments.…The first two are the URLs for the…official .gitignore documentation,…and line three is the URL for some example .gitignore files.…You don't need to visit these URLs…until you're more experienced with Git,…but it's useful to know where to find the documentation.…Lines four, five, and six are…
- 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