Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
1#!/bin/bash 2 3set -e 4 5branch=$(git rev-parse --abbrev-ref HEAD) 6if [ "$branch" != "main" ]; then 7 echo "You must be on main to run this script" 8 exit 1 9fi 10 11git pull --ff-only origin main 12git tag -f nightly 13git push -f origin nightly