Engineering Tools for AI

Programming

Git and GitHub Terms

A searchable reference for understanding repository work, branches, commits, sync commands, pull requests, conflicts, and safe Git requests.

33 matching terms

Core concepts

Repository

Repository

engineerdoge/math-ai-tools

Meaning

A project folder tracked by Git, usually mirrored on GitHub.

How it is used

When you ask to inspect a project, commit work, or compare branches, the repository is the unit being handled.

Example

engineerdoge/math-ai-tools

Request example

Check the current repository status.

Core concepts

Working tree

Working tree

git status

Meaning

The files currently checked out on your machine, including edits that are not committed yet.

How it is used

Use it to separate committed history from the edits currently in progress.

Example

git status

Request example

Show what changed in the working tree.

Core concepts

Staging area

Staging area

git add src/components/SiteHeader.tsx

Meaning

A temporary selection of changes that will be included in the next commit.

How it is used

It lets you commit only the files or hunks that belong together.

Note

Staging does not save history by itself. The commit is what records it.

Example

git add src/components/SiteHeader.tsx

Request example

Stage only the files for the Git terms page.

Core concepts

Commit

Commit

git commit -m "Add Git terms reference"

Meaning

A saved snapshot of selected changes in the repository history.

How it is used

Commits make it possible to review, compare, deploy, or roll back changes later.

Example

git commit -m "Add Git terms reference"

Request example

Create a commit with a concise message.

Core concepts

Diff

Diff

git diff

Meaning

A line-by-line view of what changed between two file states.

How it is used

Diff is the quickest way to review exactly what an edit did before committing.

Example

git diff

Request example

Review the diff for unexpected changes.

Branches

Branch

Branch

qwen3.5

Meaning

A named line of work that can move separately from other lines of work.

How it is used

Branches let you develop a feature without changing main immediately.

Example

qwen3.5

Request example

Tell me which branch I am currently on.

Branches

main branch

main branch

main

Meaning

The default branch that usually represents the stable or production-ready version.

How it is used

Compare your working branch with main to see what changed.

Example

main

Request example

Compare this branch against main.

Branches

checkout

checkout

git switch qwen3.5

Meaning

Changing the working tree to another branch or commit.

How it is used

Use it when you need to inspect or continue work on another branch.

Note

Uncommitted edits can block switching branches if they would be overwritten.

Example

git switch qwen3.5

Request example

Switch to the qwen3.5 branch after checking for uncommitted changes.

Branches

merge

merge

git merge main

Meaning

Combining changes from one branch into another branch.

How it is used

Use merge to bring main updates into your feature branch or finish a feature into main.

Note

Merge can create conflicts when both branches edited the same lines differently.

Example

git merge main

Request example

Explain what would happen before merging main into this branch.

Branches

rebase

rebase

git rebase main

Meaning

Replaying commits from one branch on top of another base commit.

How it is used

It can make history look linear before merging a feature branch.

Note

Rebase rewrites commit history, so it should be used carefully on shared branches.

Example

git rebase main

Request example

Do not rebase yet. First explain the risk on this branch.

Sync

clone

clone

git clone https://github.com/user/project.git

Meaning

Making a local copy of a remote repository.

How it is used

It is usually the first step when starting work on an existing GitHub project.

Example

git clone https://github.com/user/project.git

Request example

Clone this repository and show the available branches.

Sync

remote

remote

origin git@github.com:user/project.git

Meaning

A named connection from the local repository to a repository hosted somewhere else.

How it is used

Remote settings decide where pull and push communicate.

Example

origin git@github.com:user/project.git

Request example

Show the configured remotes.

Sync

fetch

fetch

git fetch origin

Meaning

Downloading remote branch information without changing your working files.

How it is used

Use fetch before comparing your branch with the latest remote state.

Example

git fetch origin

Request example

Fetch from origin, then compare this branch with main.

Sync

pull

pull

git pull origin main

Meaning

Fetching remote changes and applying them to the current branch.

How it is used

Use it to update your local branch with work that was pushed elsewhere.

Note

Pull can change your working branch and may cause conflicts.

Example

git pull origin main

Request example

Before pulling, check whether I have local uncommitted changes.

Sync

push

push

git push origin qwen3.5

Meaning

Uploading local commits to a remote repository.

How it is used

Push makes your local commits available on GitHub or another remote.

Note

Push only uploads commits, not uncommitted working tree edits.

Example

git push origin qwen3.5

Request example

Push the current branch after confirming the build passes.

Sync

origin

origin

git push origin qwen3.5

Meaning

The conventional default name for the remote repository you cloned from.

How it is used

Most push, pull, and fetch examples use origin as the remote name.

Example

git push origin qwen3.5

Request example

Check whether origin points to the expected GitHub repository.

Review

Pull Request

Pull Request

Open a PR from qwen3.5 into main

Meaning

A GitHub review page for discussing and merging branch changes.

How it is used

Use a PR to review changed files, run checks, discuss comments, and merge safely.

Example

Open a PR from qwen3.5 into main

Request example

Summarize what should go into the PR description.

Review

Review

Review

Review requested changes

Meaning

Checking code changes for bugs, regressions, readability, and missing tests.

How it is used

Review helps catch issues before merging a branch into the shared codebase.

Example

Review requested changes

Request example

Review this branch for bugs and missing tests.

Conflicts

Merge conflict

Merge conflict

CONFLICT (content): Merge conflict in src/app/page.tsx

Meaning

A situation where Git cannot automatically combine changes from different branches.

How it is used

You must choose the correct final content before the merge can continue.

Note

Do not blindly accept one side. Check the intended behavior first.

Example

CONFLICT (content): Merge conflict in src/app/page.tsx

Request example

Explain the conflict and propose the safest resolution.

Conflicts

Conflict marker

Conflict marker

<<<<<<< HEAD

Meaning

Text markers Git inserts into a file to show conflicting versions.

How it is used

Markers show which part came from your current branch and which came from the incoming branch.

Note

Conflict markers should not remain in committed code.

Example

<<<<<<< HEAD

Request example

Find any remaining conflict markers.

Conflicts

Untracked file

Untracked file

?? src/lib/git-github.ts

Meaning

A file that exists in the folder but has not been added to Git tracking yet.

How it is used

New pages and components usually appear as untracked until staged.

Example

?? src/lib/git-github.ts

Request example

List untracked files and tell me which ones belong to this feature.

Conflicts

Modified file

Modified file

M src/components/SiteHeader.tsx

Meaning

A tracked file whose content differs from the last committed version.

How it is used

It helps you see which existing files were touched by the current work.

Example

M src/components/SiteHeader.tsx

Request example

Show the modified files for this task.

Safety

stash

stash

git stash push -m "before branch switch"

Meaning

Temporarily saving uncommitted changes so the working tree can become clean.

How it is used

Use stash before switching branches when you are not ready to commit.

Note

Stashed work can be forgotten. Always name it clearly and reapply it deliberately.

Example

git stash push -m "before branch switch"

Request example

Stash my current edits with a clear message before switching branches.

Safety

reset

reset

git reset --soft HEAD~1

Meaning

Moving branch or staging state back to another commit or state.

How it is used

Soft or mixed reset can adjust a local commit before it is shared.

Note

Hard reset can discard work. Ask for an explanation before using it.

Example

git reset --soft HEAD~1

Request example

Explain the safest way to undo the last local commit without losing changes.

Safety

revert

revert

git revert abc1234

Meaning

Creating a new commit that undoes an earlier commit.

How it is used

Revert is usually safer than rewriting history after commits have been pushed.

Example

git revert abc1234

Request example

Revert the problematic commit without rewriting shared history.

Safety

force push

force push

git push --force-with-lease origin qwen3.5

Meaning

Overwriting a remote branch with your local branch history.

How it is used

It is sometimes used after rewriting local history on a private feature branch.

Note

Force push can erase other people's remote commits. Prefer force-with-lease and confirm first.

Example

git push --force-with-lease origin qwen3.5

Request example

Do not force push. Explain whether force-with-lease is necessary.

Safety

.gitignore

.gitignore

.next/

Meaning

A file that tells Git which files or folders should not be tracked.

How it is used

Use it for build output, dependencies, local environment files, and temporary files.

Example

.next/

Request example

Check whether build output is ignored properly.

Commands

git status

git status

git status --short

Meaning

A command that shows branch, staged changes, modified files, and untracked files.

How it is used

Run it before editing, committing, pulling, or switching branches.

Example

git status --short

Request example

Run git status and summarize only the important changes.

Commands

git log

git log

git log --oneline -5

Meaning

A command for viewing commit history.

How it is used

Use it to find recent commits, compare work, or identify a commit to revert.

Example

git log --oneline -5

Request example

Show the last five commits in a compact format.

Commands

git add

git add

git add src/lib/git-github.ts

Meaning

A command that stages changes for the next commit.

How it is used

Use explicit paths when you want a focused commit.

Example

git add src/lib/git-github.ts

Request example

Stage only the files created for this page.

Commands

git commit

git commit

git commit -m "Add Git terms reference"

Meaning

A command that records staged changes into repository history.

How it is used

Use a message that says what changed and why it matters.

Example

git commit -m "Add Git terms reference"

Request example

Commit the staged changes with a clear message.

Commands

git pull

git pull

git pull --ff-only

Meaning

A command that updates the current branch from a remote branch.

How it is used

The --ff-only option avoids creating an unexpected merge commit.

Example

git pull --ff-only

Request example

Pull with ff-only if it is safe.

Commands

git push

git push

git push origin HEAD

Meaning

A command that uploads local commits to a remote branch.

How it is used

Use it after tests pass and commits are ready to share.

Example

git push origin HEAD

Request example

Push this branch after confirming there are no lint or build failures.