How to indexing the same ".git" github repo in different computer?

I have a MacBook for outdoor coding, a Windows PC at the company, and a Windows PC at home if my MacBook is busy.

If the repo is the same .git github/gitlab or else repo, how should I config to let cursor create the Codebase indexing only once?

Is there an automatically (git) repo ID for codebase indexing?
Or can I manually setup a unique ID to let cursor know this in the same codebase?

same user, same git repo.

Thanks.

from official site:

Security | Cursor > code indexing - The AI Code Editor

When codebase indexing is enabled in a Git repo, we also index the Git history. Specifically, we store commit SHAs, parent information and obfuscated file names (same as above). To allow sharing the data structure for users in the same Git repo and on the same team, the secret key for obfuscating the file names is derived from hashes of recent commit contents. Commit messages and file contents or diffs are not indexed.

It looks like has a automatically solutions by using commit hash and a fuzz file name index. Maybe solved my questions. :joy: