我制作了一个简单的 Git 客户端,可以在 Bolt.new 中使用。
在将资产导入Bolt并将代码从Bolt保存到GitHub的过程中,我遇到了一些困难。于是我制作了一个小型的Git客户端,可以在Bolt的新Web容器中使用。你可以在Bolt的代码/终端标签页中使用它。
要将源代码导出到新的GitHub仓库,并从远程仓库拉取更改(仅限快进模式),请使用以下命令:
```
npx git-bolt sync
```
查看原文
Was struggling for a while on bringing assets inside Bolt and saving code from Bolt to GitHub.
Made a small git client that can work inside Bolt.new webcontainer.
You can use it inside Code / Terminal tab inside Bolt.<p>To export sources to new GitHub repo, pull changes from remote repo (fast forward only):<p>npx git-bolt sync