experience from https://www.youtube.com/watch?v=gyMwXuJrbJQ , https://www.youtube.com/watch?v=amAq-WHAFs8 , managed by git worktree in one repository.
| BranchName | Contents | Repo |
|---|---|---|
| ethers000 | ethers usage | ethers000 |
| hardhat000 | hardhat usage | hardhat000 |
| hardhat001 | hardhat usage, (fundme) | hardhat001 |
| hardhat002 | hardhat usage, (lottery/raffle) | hardhat002 |
| hardhat003 | hardhat usage, (starter kit/ERC20/DeFi & Aave) | hardhat003 |
| hardhat004 | hardhat usage, (NFT) | hardhat004 |
| hardhat005 | hardhat usage, (NFT marketplace) | hardhat005 |
| hardhat006 | hardhat usage, (Upgrades/DAOs/Security&Auditing) | hardhat006 |
| hardhat007 | full-stack web3 | hardhat007 |
| hardhat008 | web3 full stack by create-web3-dapp | hardhat008 |
| foundry00 | solidity test (foundry) usage | foundry00 |
| solana-bootcamp-2024 | anchor web3 | solana-bootcamp-2024 |
| solana_rareskills | solana smart contract | solana_rareskills |
git worktree add -b/-B ${new-branch-name} ${worktree-path} ${branch-name}
git worktree list
git branch -vv
git worktree remove [-f] ${worktree-path}
git worktree prune -n # just check worktree status
git worktree prune -v
git worktree move ${worktree-path} ${new-worktree-path}
git worktree list [--porcelain]
git worktree lock [--reason msg] ${worktree-path} # temp worktree-path, like paths in the /tmp
git worktree unlock ${worktree-path}
git worktree repair ${worktree-path} # repo was moved, repair worktree
git worktree add branches/foundry00 foundry00
cd branches/foundry00; git log; code .
cd .. && git worktree remove foundry00