11

I know you can move files. But what about renaming and moving whole directories?

nwellnhof
  • 32,319
  • 7
  • 89
  • 113
wnrph
  • 3,293
  • 4
  • 26
  • 38

2 Answers2

7

Actions menu, Move... option at the bottom of the dropdown. Alternatively, the command line git command always works.

Mark Granoff
  • 16,878
  • 2
  • 59
  • 61
  • You can surely rename a directory to where you want it from the command line, and git should "see" that change without a problem. – Mark Granoff Jun 07 '12 at 15:22
  • 5
    Git sees the as deleted/new files which I do not prefer because of potential merge conflicts. – wnrph Jun 10 '12 at 17:46
  • 6
    I don't see the Move.. option under Actions. Has this option been removed? There is a Copy option at the bottom, but it doesn't seem to do anything. – tvo Dec 14 '17 at 10:08
1

You can use the git mv command on the command line after which SourceTree correctly indicated the move. The SourceTree command line can be opened with the Terminal button.

There is no way currently to do this directly inside SourceTree unfortunately, at least for a folder.

SaeX
  • 17,240
  • 16
  • 77
  • 97