Skip to content

Commit

Permalink
git: case sensitive renaming #6
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonVanherweghe committed Aug 25, 2023
1 parent bea7dc2 commit 8647e38
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions docs/git/basics/git-07-tipsandtricks.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Tips and Tricks

## Renaming files and folders

Git's behavior regarding file and folder names is influenced by the case sensitivity of the underlying file system. Some file systems, like macOS by default, are case-insensitive, while others like those in most Linux distributions are case-sensitive. To be sure git picks up filename changes, -especially when you are only changing the casing of a filename- one should use the `git mv` command.

```bash
git mv MyFileName myfilename
```

0 comments on commit 8647e38

Please sign in to comment.