You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
git init # Initializes new Git repo
git add . # Stages all new files in working directory
git commit -m "Initial commit: AI-powered decision support app" # Snapshots staged files with a commit comment
git branch -M main # Renames current branch as main
git remote add origin https://github.com/Hefrock/the-tiebreaker.git # Links local to remote repo with "origin" nickname
git push -u origin main # Upload local data to remote repo
π: Rebase Sync Routine
This is helpful when collaborating when changes were made on the remote main repo. If our local version is behind main, we can catch up.
git fetch origin # Downloads the latest branches and history from remote
git checkout main # Switches to the target branch
git pull origin main # Pulls the latest updates to your local main
git checkout feature/new-feature # Returns to your working branch
git rebase main # Integrates remote changes onto your branch
βοΈ Pull remote repo and build into local working directory
This is a useful routine for iterative local build testing
cd ~/dotfiles # Change to flake directory
git pull origin claude/testing-branch # Pull remote branch into local working directory
sudo nixos-rebuild switch --flake ~/dotfiles#laptop # Nix code to build & switch
π§ͺ Test out remote repo before building
Can test in realtime without creating another NixOS generation. Does not persist on reboot!
cd ~/dotfiles # Go to the flake repo
git fetch origin # pull remote refs into local repo; working tree untouched
git checkout claude/antigravity-class-lockdown # switch working tree to that branch (windowrules.nix now has the narrowed regex)
sudo nixos-rebuild test --flake .#laptop # build/activate NixOS configuration NOW; not persisted across reboot
hyprctl reload # re-read hyprland.conf (HM repointed the symlink during activation)
antigravity # launch Antigravity IDE; Hyprland matches its class against the new rule on window-map
About
Google Git and GitHub course related skills. Readme features useful Git and Nix commands.