Git clone the repository, cd
into it and then:
$ make venv-devel # one time only
$ source .venv/bin/activate
$ alembic upgrade head
Add new feature branch:
$ git checkout -b feature/new-feature
$ git add .
$ git commit
$ git push -u origin new-feature
$ git switch main
$ git fetch origin
$ git merge origin/main
Clear Github credentials in macOS:
$ git credential-osxkeychain erase
host=github.com
protocol=https
[Return]
Set Github’s local name and email and list options:
$ git config --local user.name "codcod"
$ git config --local user.email "..."
$ git config --local -l
Key steps taken while the repository was created.
Push an existing repository from the command line:
$ git init
$ git add .
$ git commit -m "Initial commit"
$ git branch -M main
$ git remote add origin https://github.com/codcod/valet.git
$ git push -u origin main
Create database migrations:
$ alembic init --template async migrations # alembic.ini: sqlalchemy.url = sqlite+aiosqlite:///parking.db
$ alembic revision -m "create schema"
$ alembic upgrade head
$ alembic downgrade base # alembic downgrade -1