Add git workflow to CONTEXT.md
This commit is contained in:
+34
@@ -4,6 +4,40 @@ Paste this at the start of any new conversation to restore full context.
|
||||
|
||||
---
|
||||
|
||||
## Git repository
|
||||
|
||||
- Gitea: `http://minimax.lan:3000/george/maxbot.git`
|
||||
- Server: `~/maxbot` on `portainer.local` (user: george)
|
||||
- Branch: `main`
|
||||
|
||||
**Workflow for every change:**
|
||||
```bash
|
||||
# On Ubuntu server after updating files
|
||||
cd ~/maxbot
|
||||
git add -A
|
||||
git commit -m "Short description of what changed"
|
||||
git push
|
||||
```
|
||||
|
||||
**To pull latest on server:**
|
||||
```bash
|
||||
cd ~/maxbot && git pull
|
||||
sudo systemctl restart maxbot
|
||||
```
|
||||
|
||||
**To see history:**
|
||||
```bash
|
||||
git log --oneline
|
||||
```
|
||||
|
||||
**To revert a bad change:**
|
||||
```bash
|
||||
git revert HEAD # undo last commit
|
||||
sudo systemctl restart maxbot
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## What this is
|
||||
|
||||
A live grid trading bot running on Ubuntu server (portainer.local), trading
|
||||
|
||||
Reference in New Issue
Block a user