I am getting this err("worktree contains unstaged changes") when I use
w.Pull(&git.PullOptions{Auth: auth, RemoteName: "origin",ReferenceName: plumbing.ReferenceName("refs/heads/gittrial"), SingleBranch: true})
Next time when I run the same code I get this err("already up-to-date"). I have manually checked the log, and found that the it has pulled the latest commit but not reflecting the changes in file.
I am getting this err("worktree contains unstaged changes") when I use w.Pull(&git.PullOptions{Auth: auth, RemoteName: "origin",ReferenceName: plumbing.ReferenceName("refs/heads/gittrial"), SingleBranch: true}) Next time when I run the same code I get this err("already up-to-date"). I have manually checked the log, and found that the it has pulled the latest commit but not reflecting the changes in file.