# Git Worktree with Scaffold-Eth too **Published by:** [tekh](https://paragraph.com/@quantumtekh/) **Published on:** 2023-07-16 **URL:** https://paragraph.com/@quantumtekh/git-worktree-with-scaffold-eth-too ## Content Versions2023.09.10 - updated local repo setup to include a cdOverviewthis document will describe how to create a scaffold-eth 2 project with a remote fork and a local worktree The following examples are based off the following forked se-2 repo: https://github.com/OwlWilderness/se-2PrerequisitesVisual Studio Code https://code.visualstudio.com/download/GitHub Account [your-github] https://github.com/Remote Repository Setup (Github)Fork Scaffold-Eth 2 RepoNavigate to se-2 repo https://github.com/scaffold-eth/scaffold-eth-2Click the Fork button to create a fork in [your-github]Name your [forked-repo]fork se-2 repositoryname new forked-repoLocal Repository SetupCreate a local se-2 folder to contain projects example:PS C:\git> md se-2 In se-2 Clone [your-github] [forked-repo] into a local main branch Navigate to the se-2 folder and clone your forked repo into a new main folder*./se-2>* git clone https://github.com/[your-github]/[forked-repo].git mainexample:PS C:\git\se-2> git clone https://github.com/OwlWilderness/se-2.git main In main Add Worktree for new Project Branch When creating a new project navigate to the main branch and execute the worktree add command. Specify a branch name and folder location. (the below example will put the folder in the same directory as main) example:PS C:\git\se-2\main> git worktree add -B project1 ../project1 Change Directory to new ProjectPS cd ../project1 Push to origin example:PS C:\git\se-2\project1> git push --set-upstream origin project1 OutcomeThe folder structure should look like the following.local folder structureThe contents of each folder should contain the scaffold-eth main project.project folder contentsThe remote git repository will contain the new branch.git hub forked repo branchesReference Articleshttps://mirror.xyz/news.buidlguidl.eth/O_Gc84QO4TjvxJnunkRr-s-It1qBTK7TMlJcWf4FQ_I https://mirror.xyz/news.buidlguidl.eth/8Lx4pV-h2yk6mu5C5UZVPjfOtVwknLmB8bd7114kaxI ## Publication Information - [tekh](https://paragraph.com/@quantumtekh/): Publication homepage - [All Posts](https://paragraph.com/@quantumtekh/): More posts from this publication - [RSS Feed](https://api.paragraph.com/blogs/rss/@quantumtekh): Subscribe to updates