# Hosting experiment repo on Github

**URL:** <https://forum.access-hive.org.au/t/hosting-experiment-repo-on-github/4443>\
**Category:** Earth System Model\
**Tags:** help\
**Created:** [29 April 2025 05:52 UTC](https://forum.access-hive.org.au/t/hosting-experiment-repo-on-github/4443 "2025-04-29T05:52:29Z")\
**Posts on this page:** 1\
**Showing post:** 10

<div class="post-metadata">

**Author:** ![lachlanswhyborn](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.access-hive.org.au/lachlanswhyborn/32/1837_2.png) [@lachlanswhyborn](https://forum.access-hive.org.au/u/lachlanswhyborn)\
**Post date:** [2 May 2025 06:03 UTC](https://forum.access-hive.org.au/t/hosting-experiment-repo-on-github/4443/10 "2025-05-02T06:03:40Z")

</div>

Ok I think I have a workflow that I think will work. Perform the `Authorise with Github` and `Push to Repo` steps in one of the control directories, but don’t do the `git push <repo_name> --all` step. Once you’ve done that, go to the repository you’ve just created on ACCESS-Community-Hub (should be able to search that organisation by the `repo_name` you just used) and get the URL of the repository, we’ll call it `<repo_URL>`. Then do this in each of your other control directories:

1. `git remote add origin <repo_URL>`. This tells the current directory to point to the repository on Github as the “master” in a sense.
2. To check that this worked, do `git remote -v`. It should show that URL for `fetch` and `push`.
3. `git push --set-upstream origin <branch_name>`. This should push the current control directory as a branch to the master with the given name. Say the directory you’re in is the 30% variability reduction case, the name it something like `30pc_SST_variability_reduction`.

Hopefully this works, I might have missed a step in there, so as always, let me know if there are problems.

---

_[View the full topic](https://forum.access-hive.org.au/t/hosting-experiment-repo-on-github/4443)._
