- Create a Fork and name it Symbi
- Resource on GitHub Forking: https://gist.github.com/Chaser324/ce0505fbed06b947d962
- Clone your Fork to your local machine
git clone https://github.com/USERNAME/Symbi.git
- Change into the directory where the repository was cloned
cd Symbi
- Keep up-to-date with the original upstream repository that you forked (this repository)
- Add 'upstream' repo to list of remotes
git remote add upstream https://github.com/UPSTREAM-USER/ORIGINAL-PROJECT.git
- Verify the new remote named 'upstream'
git remote -v
- In the Symbi directory, create a virtual environment and activate it
virtualenv .env
- on Mac:
source .env/bin/activate
- on Windows:
.env/Scripts/activate
- Install requirements in the virtual environment
pip install -r requirements.txt
- Change into the directory containing the django project
cd symbi
- Create a file called ‘.env’
touch .env
- Generate a secret key and print the output by running this command in terminal:
python -c 'from django.core.management.utils import get_random_secret_key; print(get_random_secret_key())'
- Inside the .env file, create a variable called SECRET_KEY and paste the key that was generated. GitHub knows to ignore files named .env, so your secret key will remain local.
- Make sure your fork is up-to-date
git fetch upstream
- Checkout your own development branch
git checkout develop
- Merge upstream with the original repository’s development branch
git merge upstream/develop
- Checkout your own development branch
git checkout develop
- Create a branch
git branch featurename
- Checkout the newly created branch to switch to it
git checkout featurename