Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jgit-dev] "git mv" with jgit?

> Git has an 'mv' command that makes it possible to move or renames files and
> folders with retained history. How can I accomplish the same thing using
> jgit?


the mv command is currently beeing added to the jgit api (see,4790). But be aware that you don't
need the 'git mv' command to achieve what you want. See this

See here:;a=blob;f=org.eclipse.jgit.test/tst/org/eclipse/jgit/diff/;hb=refs/heads/master
for some examples in JGit.


Back to the top