Updated: 05 February 2024
In ~/.gitconfig
[diff]
tool = lvimdiff
[difftool "lvimdiff"]
cmd = "lvim -d \"$LOCAL\" \"$REMOTE\""
[difftool]
prompt = false
Freelance software engineer United Kingdom
Updated: 05 February 2024
In ~/.gitconfig
[diff]
tool = lvimdiff
[difftool "lvimdiff"]
cmd = "lvim -d \"$LOCAL\" \"$REMOTE\""
[difftool]
prompt = false
Updated: 09 November 2023
1. Push changes from local to BitBucket as normal.
2. From inside the bare repo directory on the Prod server, fetch all the changes from BitBucket
cd /bare/repo/my-proj.git
git fetch origin *:*
3. Transfer the changes to the working directory
cd /anywhere/on/the/system
git --work-tree /path/deploy/dir --git-dir /bare/repo/my-proj.git checkout --force my-branch
Updated: 25 November 2022