On my new project every single time a new preview (rewind) is made the disk space skyrockets up and won’t let me edit so I have to run this command “rm -rf /app/.git/” but after 5 minutes it makes another rewind! how do I disable the rewind?
Hi there, it must be something specific to your project so posting the link to the project would help others to look into the problem.
Also the support is usually helpful in this regard so you should contact them too
https://help.glitch.com/hc/en-us/requests/new
the problem is that previews take up my disk space, since my project is 100+ mb, one preview is more than 199 MB, the limit
make a .gitignore file to have the rewind system ignore certain parts of the project
You can always close the preview pane, or disable the auto-refresh of the preview pane:
Closing the preview pane:
Disabling Auto-Refresh:
I am a bit confused by what you mean, but I hope this helps!
I meant the time machine, not previews
You can’t, rewind is an integral part of Glitch. It’s based on normal git tracking, so if you see disk space skyrocket, the only way that can happen is if you’ve put a ton of data into your project that should probably not be there, but should be hosted as normal CDN asset data.
What are you doing that balloons your project size? (e.g. if you’re sticking tons of images, audio/video files, etc. in your project instead of using the asset manager, definitely stop doing that and start using the CDN asset solution instead).
Looks like I spoke too soon - there is a way to do this, but it requires a bit of work because you’re going to have to manually teach git what you want to do by creating a git hook in the right directory:
Place a file named prepare-commit-msg
in your project’s .git/hooks/
directory that follows the pattern in this project’s /app/.git/hooks/prepare-commit-msg file, which looks like this:
#!/bin/sh
# if the prepared commit message ends with "Checkpoint", abort the commit
if grep -q "Checkpoint$" "$1"; then
echo "Skipping default commit" >> /tmp/message
exit 1
fi
Make sure your new file is executable by bash by sending chmod +x /app/.git/hooks/prepare-commit-msg
to the console.
That file checks the incoming commit message for every new commit. If it ends with “Checkpoint”, as the default Glitch commits do, abort the commit. Any hand-crafted commit message (even ones that include “checkpoint” but don’t end with it) will be allowed.
The whole process as console commands:
echo '#!/bin/sh
# if the prepared commit message ends with "Checkpoint", abort the commit
if grep -q "Checkpoint$" "$1"; then
echo "Skipping default commit" >> /tmp/message
exit 1
fi' > /app/.git/hooks/prepare-commit-msg && chmod +x /app/.git/hooks/prepare-commit-msg
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.