Skip to content

Open source website builder and Webflow alternative. Webstudio is an advanced visual builder that connects to any headless CMS, supports all CSS properties, and can be hosted anywhere, including with us.

chore: Add gitclean and gitrebase to devcontainer (#4027)

Ivan Starkovd3d19e77fd1b
diff --git a/.devcontainer/postinstall.sh b/.devcontainer/postinstall.sh
index ffc3f8b1d0..b63ff84cc6 100755
--- a/.devcontainer/postinstall.sh
+++ b/.devcontainer/postinstall.sh
@@ -25,3 +25,12 @@ find . -name '.pnpm-store' -type d -prune -exec rm -rf '{}' +
pnpm install
pnpm run build
pnpm migrations migrate
+
+
+cat << 'EOF' >> /home/node/.bashrc
+
+alias gitclean="(git remote | xargs git remote prune) && git branch -vv | egrep '('\$(git remote | xargs | sed -e 's/ /|/g')')/.*: gone]' | awk '{print \$1}' | xargs -r git branch -D"
+alias gitrebase="git rebase --interactive main"
+EOF
+
+