Git strategy - inwe-boku/pypsa-eur-multiple-weather-years GitHub Wiki
When you fork a repository on GitHub, you create your own copy of the project where you can make changes without affecting the original repository. This allows you to experiment and develop your own features or modifications freely.
To regularly incorporate changes from the original repository (often referred to as the "upstream" repository) into your fork, you can follow these steps:
-
Fork the Repository: Click the "Fork" button on the original repository's GitHub page to create your own copy.
-
Clone Your Fork: Clone your forked repository to your local machine using:
git clone https://github.com/your-username/repo-name.git
-
Whenever updates from original are needed, sync with "Sync fork"
Set upstream directly from local repo
3a. Set Up Upstream Remote: Navigate to your cloned repository and add the original repository as a remote called "upstream", if necessary to directly pull changes to local repo, without having them on github: ```bash cd repo-name git remote add upstream https://github.com/original-owner/repo-name.git ```3b. Fetch Changes from Upstream: To pull in changes from the original repository, you can fetch and merge them:
git fetch upstream git checkout main # or the branch you want to update git merge upstream/main # or the corresponding branch
-
Push Changes to Your Fork: After merging, push the updates to your fork:
git push origin main # or your branch name
By following these steps, you can keep your fork up to date with the original repository while working on your own changes without disturbing anyone else. If you have any more questions or need further assistance, feel free to ask!
- Workflow Push images was disabled as not in use and problems with permission errors.
- all other workflows run, secrets set.
- Naming:
dev_mnutz_<name>