MasterChief

SOURCE CONTROL

Git Workflow Field Guide

MISSION CONTROL / SOURCE CONTROL

Release Journey

Follow your update from local changes to a verified merge. Existing tools stay right where they are.

Everyday development

Follow the flow from a fresh feature branch through review and merge. The example uses origin/Masterchief4; verify your intended base branch before running commands.

Git workflow: start from the merged app, edit and inspect, stage and commit, push the feature branch, create and review a pull request, then start the next task.

The image shows page 1. The Visio file also contains the safety, recovery, and command-reference pages; their key points are summarized below.

Update and push your app: essentials

Save your edits first. These actions run in the local MasterChief repository. Each button selects a command below; check its preview, choose Run command, confirm when prompted, and check the output before continuing.

  1. Check your branch and changes: run git status. “Up to date” only compares commits; your edited and new files may still be uncommitted.
  2. Stage changes: run git add -A to stage all tracked edits and deletions and non-ignored new files. To include only certain files, use Stage a selected path instead.
  3. Review what will be committed: run git status, then git diff --staged to inspect tracked staged content. Review new files too, and check for credentials or private data.
  4. Commit: select Commit staged files, enter a meaningful message, and run git commit -m "Describe your changes". The commit includes every staged change.
  5. Push: run git push if your branch already has an upstream. Otherwise choose Push branch and set upstream and enter your branch name. Push sends commits, not unstaged or uncommitted edits.

Important: git add -A stages changes across the entire repository, including deletions and files you might not intend to publish. Ignored untracked files are not included. Previously staged files are included in the commit too. If you want only certain files, stage them individually and review the complete staged set before committing. A commit is local until pushed; pushing does not merge a pull request.

Repository activity and file relationships

Changes in the working tree and files in the latest commit, grouped by directory. Relationships show statically resolved Python imports only; dynamic imports and other languages are not included. An import does not prove runtime execution.

Select a file in the list or 3D map to edit it below. You can also open it in the full Code UI. Deleted, binary, and non-UTF-8 files cannot be edited here.

Loading activity...

3D file ecosystem

Changed files are green; connected files are blue. Drag to rotate, use the mouse wheel to zoom, and select a file to highlight its direct connections. Lines represent static Python imports, not all possible relationships.

Load activity to view the 3D ecosystem.

File editor

Choose a file above to open it.

No file open.

Save writes to disk. Stage adds the whole selected file. A commit includes all staged files, not just the selected file. Review before committing.

Staged changes and command output

No commands run yet.

Python import relationships

Open Diagnostics · Open Source Map

Safety and branches

  • Check status, staged changes, branch tracking and remote destinations before switching or pushing.
  • Branches are references, not separate app folders. A deleted remote branch does not delete the local branch.
  • Verify work is merged or backed up before branch cleanup. Squash merges may make safe deletion refuse.
  • Ignore rules do not protect already-tracked files. Review private data and credentials before staging or pushing.
  • Branches are pointers to commits, not backups. Keep both local and remote branches unless cleanup is intentional; GitHub repository settings may automatically delete merged remote branches. After a confirmed merge, fetch and create the next feature branch from the updated base.

Recovery and caveats

  • A commit includes only staged changes. Use git add -A to stage all changes or stage selected paths, then review git status and git diff --staged before committing. Push sends commits, not unsaved or uncommitted edits.
  • Inspect pending changes before switching or discarding. Reflog can help locate commits but is not a backup.
  • Revert creates a new commit; merge commits require special handling. Reverting does not remove secrets from history.
  • Resolve and stage conflicts before continuing a merge or rebase. Aborting can discard progress.
  • Reset hard, force-delete and force-push can discard work or rewrite history. Verify targets and backups first.

Command reference

Inspect with git status, git branch -vv, git remote -v, git diff and git diff --staged. Use git reflog and git show --stat <commit> to investigate prior work.

Prepare with git fetch origin and git switch -c <name> origin/Masterchief4; then stage, review, commit, push and create a pull request. Replace placeholders and check the target branch.

The Git Command Center has executable commands, previews and confirmations. It operates on the MasterChief repository, not a repository selected in GitHub Integration.

Run workflow commands

Use the same protected, confirmed commands as Git Command Center. Commands operate on the MasterChief repository, not a selected GitHub repository.

Branch: loading...Loading changes...
Working tree and recent commits

Select a command

Return to quick guided workflow

Return to Release Journey


          
          

Output Ready

Command output will appear here.