Skip to content

Commit

Permalink
Add instruction for pushing multi repo branch
Browse files Browse the repository at this point in the history
  • Loading branch information
vladistan committed Sep 8, 2024
1 parent 750add8 commit 1cad8d8
Showing 1 changed file with 30 additions and 3 deletions.
33 changes: 30 additions & 3 deletions README.multi-repo.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,46 @@
- [Fork greenbutton](https://github.com/codeforboston/greenbutton_objects/fork)
- [Fork home-energy-analysis-tool](https://github.com/codeforboston/home-energy-analysis-tool/fork)

2. Start Github codespace with options make sure to select correct branch `multi-repo-container` and correct configuration 'With Home Energy App' as shown below:

2. Make sure multi-repo branch is in your forked repo. Do this on your local machine.
Make sure to replace `YOUR_GITHUB_USERNAME` with your actual github username.

```
GITHUB_USERNAME=YOUR_GITHUB_USERNAME
mkdir multi-repo
cd multi-repo
git clone "git@github.com:${GITHUB_USERNAME}/greenbutton_objects.git"
cd greenbutton_objects
git fetch --all
git checkout multi-repo-container
git push origin multi-repo-container
cd ..
git clone git@github.com:${GITHUB_USERNAME}/home-energy-analysis-tool.git
cd home-energy-analysis-tool
git fetch --all
git checkout multi-repo-container
git push origin multi-repo-container
cd ..
cd ..
```


3. Start Github codespace with options make sure to select correct branch `multi-repo-container` and correct configuration 'With Home Energy App' as shown below:

<img src="images/codespace-multi-repo.png" width="500px" />

3. Once the codespace starts up and you see a message like the one below, wait for the setup to complete.
4. Once the codespace starts up and you see a message like the one below, wait for the setup to complete.

```
Finishing up
Running postStartCommand
.devcontainer/post_start.sh
```

4. Once your setup completes and you see that your VSCode extensions button in the toolbar looks like the one below click on it to see if any you have to do any extra actions like reloading a window before you can start working on the code
5. Once your setup completes and you see that your VSCode extensions button in the toolbar looks like the one below click on it to see if any you have to do any extra actions like reloading a window before you can start working on the code

![Extensions loading](images/vscode_extension_attention_needed.png)
![Extensions wait](images/vscode_extension_wait.png)

0 comments on commit 1cad8d8

Please sign in to comment.