Repository navigation
Can I edit a .bru file with a text editor? #9537
|
I have a repo where I save all of my Brune files, so I can migrate them from desktop to laptop, and back again. I found that I had made a mistake in one of them, but for some reason when I edited it in Bruno, it didn't save it. So, I thought I'd edit it with VS Code. I saved it, committed it locally, the pushed to the remote. Then I created a PR to migrate what I'd done in the child branch back to the However, later when I looked at it in GitHub.com, it was still wrong. This makes me wonder if the Bruno application saves the file in some format, that VS Code doesn't save? |
Replies: 2 comments 8 replies
|
Yes, So the problem is almost certainly on the git side, not the file format. A few things worth checking:
On the edit not saving inside Bruno: it only writes to disk when you save the request (Ctrl+S / Cmd+S), so if the tab was closed or the app quit before that, the change is lost. |
|
Also verify there's no If this helps you track it down, please mark this comment as the answer — thanks! |

Yes,
.brufiles are plain text, so editing them in VS Code is completely fine. There's no hidden or binary format, and Bruno watches the collection folder, so it picks up changes made outside the app.So the problem is almost certainly on the git side, not the file format. A few things worth checking:
mainon GitHub keeps showing the old version.main, so before the merge you'll see the old content there.git log -p -- path/to/your-request.brushows every change to that file. Make sure your fix is in there.