When you fork the kickstart.nvim project and want to keep track of updates from the original repository, follow these steps:
git remote add upstream https://github.com/nvim-lua/kickstart.nvimgit fetch upstream
git checkout -b upstream upstream/masterThis creates a local branch named upstream that tracks the upstream/master branch from the original kickstart.nvim repository.
git remote -v
git branch -vvYou should see:
upstreamremote pointing to the original kickstart.nvim repo- Local
upstreambranch trackingupstream/master
git checkout upstream
git pullgit checkout master
git cherry-pick <commit_hash>This way your repository "knows" about the commits from the main project and you can selectively import the changes you want while maintaining your own customizations.
To see what commits are available from upstream:
git log upstream --onelineTo see commits that are in upstream but not in your master:
git log master..upstream --oneline