Web lists-archives.com

git difftool --dir-diff not saving new files copied from LOCAL to REMOTE

Hi all,

I’m using vim DirDiff plugin to compare 2 branches.  This works great for the most part except:

When I compare a branch to the current branch (git difftool -t vimDirDiff --dir-diff master)

If there is a file that exists in $LOCAL that is not in $REMOTE I copy the file into $REMOTE, but when I exit the difftool the file is not in the current branch.  I would expect the new file to be there so I can add it.

Is there a way to make it sync the new files in the temp folder with the current branch?  Or even to use the current directory for $REMOTE