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 3branch=$(git rev-parse --abbrev-ref HEAD) 4if [ "$branch" != "main" ]; then 5 echo "You must be on main to run this script" 6 exit 1 7fi 8 9git pull --ff-only origin main 10git tag -f nightly 11git push -f origin nightly