You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
DorloBorlo edited this page Dec 8, 2023
·
4 revisions
The following examples assume you already have a repository in place to work with. If not, see git-init.
Move
Move a file to a new location.
Git
$ git mv <file> <new/path>
LibGit2Sharp
using(varrepo=newRepository("<repoPath>")){// Moves the file. Path must be in Posix format (using '/' as path separator)Commands.Move(repo,"<file>","<new/path>")}