Skip to content

git tips

Amadeusz Wieczorek edited this page May 31, 2022 · 4 revisions

When I started work on a clone, and then want to transition to my fork

git remote set-url origin <fork URL>
git fetch --all -p

To ignore a change to the file

git update-index --skip-worktree .gitignore

To list all conflicts

git diff --name-only --diff-filter=U

Occasional manual cleanup (tip: run it on schedule)

git gc
git prune
git gc --aggressive

Clone this wiki locally