threads / discuss / 49904

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

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

## tl;dr

One message between Nov 27, 2018 and Nov 27, 2018.

replies: 0people: 1as markdown or json

Moon, John· Nov 27, 2018, 20:24 UTC · lore
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
Thanks. 

← back to recent threads