File: git-rename-file.md

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 (43 lines) | stat: -rw-r--r-- 1,013 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
31
32
33
34
35
36
37
38
39
40
41
42
43
git-rename-file(1) -- Rename a file or directory and ensure Git recognizes the change, regardless of filesystem case-sensitivity.
================================================

## SYNOPSIS

`git-rename-file` [OPTIONS] <source> <destination>

## DESCRIPTION

The `git-rename-file` command renames a file or directory and ensures Git recognizes the change, regardless of filesystem case-sensitivity. It combines the functionality of the `mv` command and `git mv`.

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.

## OPTIONS

-h, --help
    Show usage information.

## EXAMPLES

Rename a file:

```sh
git-rename-file old_filename new_filename
```

Rename a directory:

```sh
git-rename-file old_directory new_directory
```

## AUTHOR

Written by Zachary Miller &lt;<codebyzach@gmail.com>&gt;

## REPORTING BUGS

<https://github.com/tj/git-extras/issues>

## SEE ALSO

<https://github.com/tj/git-extras>