mirror of
https://github.com/dandavison/delta.git
synced 2026-09-29 11:12:32 +02:00
23 lines
392 B
Bash
Executable File
23 lines
392 B
Bash
Executable File
#!/bin/bash
|
|
|
|
|
|
repo=$(mktemp -d)
|
|
cd $repo
|
|
|
|
mkdir "with space"
|
|
echo "file1 contents" > "with space/file1"
|
|
|
|
mkdir "nospace"
|
|
echo "file2 contents" > "nospace/file2"
|
|
|
|
git init
|
|
git commit --allow-empty -m "Initial commit"
|
|
git add .
|
|
git commit -m "Initial commit"
|
|
|
|
git mv "with space/file1" "with space/file1-renamed"
|
|
git mv "nospace/file2" "nospace/file2-renamed"
|
|
git commit -m "Rename"
|
|
|
|
git show
|