File: git-rename-file.1

package info (click to toggle)
git-extras 7.4.0-1
  • links: PTS
  • area: main
  • in suites: forky, sid
  • size: 2,120 kB
  • sloc: sh: 4,312; python: 994; makefile: 146
file content (30 lines) | stat: -rw-r--r-- 1,189 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
.\" generated with Ronn-NG/v0.8.0
.\" http://github.com/apjanke/ronn-ng/tree/0.8.0
.TH "GIT\-RENAME\-FILE" "1" "July 2024" "" "Git Extras"
.SH "NAME"
\fBgit\-rename\-file\fR \- Rename a file or directory and ensure Git recognizes the change, regardless of filesystem case-sensitivity.
.SH "SYNOPSIS"
\fBgit\-rename\-file\fR [OPTIONS] <source> <destination>
.SH "DESCRIPTION"
The \fBgit\-rename\-file\fR command renames a file or directory and ensures Git recognizes the change, regardless of filesystem case-sensitivity. It combines the functionality of the \fBmv\fR command and \fBgit mv\fR.
This is particularly useful for renaming files or directories to change only their case, which might not be detected by Git on case-insensitive filesystems.
.SH "OPTIONS"
\fB\-h\fR, \fB\-\-help\fR
.RS
Show usage information.
.RE
.SH "EXAMPLES"
Rename a file:
.RS
\fBgit\-rename\-file old_filename new_filename\fR
.RE
Rename a directory:
.RS
\fBgit\-rename\-file old_directory new_directory\fR
.RE
.SH "AUTHOR"
Written by Zachary Miller <\fI\%codebyzach@gmail.com\fR>
.SH "REPORTING BUGS"
<\fI\%https://github.com/tj/git-extras/issues\fR>
.SH "SEE ALSO"
<\fI\%https://github.com/tj/git-extras\fR>