If you try to use Git inside Adobe DreamWeaver, you may experience problems because the default settings will not work. If you find you are having this issue, follow these steps.

  1. Install Git on your computer using the default installation settings. You can download Git from:
    1. Git for Windows
    2. Git for Mac
  2. Once installed, open Adobe DreamWeaver and click on "Edit->Preferences".
  3. A window will popup. In the left hand Category menu, choose "Git".
  4. If you installed Git using the default configuration, use the following configuration options:
    1. Path to Git Executable: C:\Program Files\Git\bin\git.exe
    2. Default Git operation timeout: 60
    3. Path to Terminal: C:\Program Files\Git\git-cmd.exe
    4. Command Arguments: --cd=$1

      SCREENSHOT:



    5. Click the "Apply" button

  5. Restart Adobe DreamWeaver
  6. I found the best way to initialize a Git repo is to clone it from an existing remote repository. This makes it so you can easily push new commits to the remote server without errors. To do this, go to the "Files" tab and select the site dropdown. Then click "Manage Sites..."
  7. Double click on the site you want to add the repo to. If one hasn't been created yet, add a new site.
  8. Under the "Site" tab, check the box that says "Associate a Git Repository with this site". If a repo has already been associated with the site, this section will be grayed out.
  9. Check the radio box that says "Clone existing Git Repositiory using URL". In order to use the clone option, the "Local Site Folder" path must have no files or sub-directories in it (it must be completely empty) because the files from the remote repo will be added to it. This may be a problem if you have new changes in your site that aren't on the remote server. If that's the case, use the "Initialize as a Git Repository" (instructions for that method not currently part of this tutorial).
  10.  Type in the Git repository URL. 
  11. Type in  your Github (or other Git provider) username and password.
  12. Click the test button to make sure it works.
  13. Click the save button to save your changes.



  14. Git is now configured for your DreamWeaver site. Make sure your Git window is available by clicking "Windows->Git"
  15. To use Git inside Adobe DreamWeaver:
    1. Click the Git icon in the files tab to see a list of files in your repo and the current status. It is the icon to the immediate left of the URL.
    2. Choose which branch you want to use or create a new one using the dropdown to the right of the website name.
    3. Click the icon to the right of the branches to open the Git Window (same function as step 14).
    4. Click the icon on to the right of the Git Window icon to open up Git Terminal.
    5. To do a Git command on a file or directory, right click the file, hover over "Git" and choose which command you want to do. Before you commit files, you must stage them. You can stage them from this menu.
    6. After a file is staged, you can then commit the files to your local repository. You do this by right clicking the root folder, selecting Git, and choosing "Commit All Staged". You can also do this from the Git Window.


  16.  After a file is committed to your local repo, you can push it to your remote repo from inside the Git Window. The push icon is the 4th icon from the left. Here are the other features of the Git Window:
    1. Commit Staged Files icon - Commits the staged files to your local repo. This is the same as doing step 15-f
    2. Fetch all remotes and refresh counters - This will fetch the files from the remote server. Once they are fetched, use the pull command to retrieve them. 
    3. Git Pull - Pulls all of the queued files from your fetch to your directory.
    4. Git Push - Pushes all your committed local repo files to the remote repo.
    5. Show Repository History - Shows a history of all your commits
    6. Manage remotes dropdown - this is where you manage your remote repos. If you cloned your site initially, the remote will already be set. If not, you will need to add it here.


  17. For more information on using Git with Adobe DreamWeaver, visit  https://helpx.adobe.com/dreamweaver/using/git-support.html
  18. For more information on using Git, visit https://git-scm.com/docs
  19. For more information on using GitHub, visit https://guides.github.com/