tripweb/README/PUSH.md

1.9 KiB

Push the current workspace to a remote Git repository

This repository contains helper files to push the current code to a remote git server (example: https://git.algios.dev/francescoalbano/tripweb.git).

Important: I (the assistant) cannot run git push from here. Run the following commands locally on your machine where you have your SSH keys / credentials configured.

Quick commands

  1. Verify you are on the correct branch and that working tree is clean:
git status
# commit any changes
git add -A
git commit -m "Prepare repo for remote"  # if needed
  1. Add remote and push (automatic):
# make script executable
chmod +x scripts/push-to-remote.sh
# run the script — it defaults to the repo you provided
./scripts/push-to-remote.sh https://git.algios.dev/francescoalbano/tripweb.git main

If you prefer manual commands:

# add remote (if not present)
git remote add origin https://git.algios.dev/francescoalbano/tripweb.git
# set branch name (main assumed)
git branch -M main
# push
git push -u origin main

If your remote expects SSH, use the SSH URL instead:

# example
git remote add origin git@git.algios.dev:francescoalbano/tripweb.git
git push -u origin main

Troubleshooting

  • Permission denied / authentication: ensure your SSH key or username/password is configured for the remote server. Prefer SSH keys.
  • Repo doesn't exist: create an empty repo on the remote first (on git.algios.dev web UI) and then push.
  • Non-fast-forward errors: if the remote already has commits, consider pulling first or force push only if you understand the risks.

Next steps I can do for you

  • Create a GitHub Actions workflow to build frontend and/or backend and push images/artifacts to the remote registry.
  • Create docker-compose.prod.yml and deployment SSH Actions that deploy to your Proxmox host.

Tell me which of the above you want me to generate next.