Engineering Tools for AI

Programmierung

Git/GitHub-Begriffe

Ein durchsuchbares Glossar zu Repositorys, Branches, Commits, Sync, Pull Requests, Konflikten und sicheren Git-Aktionen.

33 Treffer

Grundbegriffe

Repository

Repository

engineerdoge/math-ai-tools

Bedeutung

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

Verwendung

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

Beispiel

engineerdoge/math-ai-tools

Anfragebeispiel

Check the current repository status.

Grundbegriffe

Working tree

Working tree

git status

Bedeutung

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

Verwendung

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

Beispiel

git status

Anfragebeispiel

Show what changed in the working tree.

Grundbegriffe

Staging area

Staging area

git add src/components/SiteHeader.tsx

Bedeutung

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

Verwendung

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

Hinweis

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

Beispiel

git add src/components/SiteHeader.tsx

Anfragebeispiel

Stage only the files for the Git terms page.

Grundbegriffe

Commit

Commit

git commit -m "Add Git terms reference"

Bedeutung

A saved snapshot of selected changes in the repository history.

Verwendung

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

Beispiel

git commit -m "Add Git terms reference"

Anfragebeispiel

Create a commit with a concise message.

Grundbegriffe

Diff

Diff

git diff

Bedeutung

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

Verwendung

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

Beispiel

git diff

Anfragebeispiel

Review the diff for unexpected changes.

Branches

Branch

Branch

qwen3.5

Bedeutung

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

Verwendung

Branches let you develop a feature without changing main immediately.

Beispiel

qwen3.5

Anfragebeispiel

Tell me which branch I am currently on.

Branches

main branch

main branch

main

Bedeutung

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

Verwendung

Compare your working branch with main to see what changed.

Beispiel

main

Anfragebeispiel

Compare this branch against main.

Branches

checkout

checkout

git switch qwen3.5

Bedeutung

Changing the working tree to another branch or commit.

Verwendung

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

Hinweis

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

Beispiel

git switch qwen3.5

Anfragebeispiel

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

Branches

merge

merge

git merge main

Bedeutung

Combining changes from one branch into another branch.

Verwendung

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

Hinweis

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

Beispiel

git merge main

Anfragebeispiel

Explain what would happen before merging main into this branch.

Branches

rebase

rebase

git rebase main

Bedeutung

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

Verwendung

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

Hinweis

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

Beispiel

git rebase main

Anfragebeispiel

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

Synchronisierung

clone

clone

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

Bedeutung

Making a local copy of a remote repository.

Verwendung

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

Beispiel

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

Anfragebeispiel

Clone this repository and show the available branches.

Synchronisierung

remote

remote

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

Bedeutung

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

Verwendung

Remote settings decide where pull and push communicate.

Beispiel

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

Anfragebeispiel

Show the configured remotes.

Synchronisierung

fetch

fetch

git fetch origin

Bedeutung

Downloading remote branch information without changing your working files.

Verwendung

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

Beispiel

git fetch origin

Anfragebeispiel

Fetch from origin, then compare this branch with main.

Synchronisierung

pull

pull

git pull origin main

Bedeutung

Fetching remote changes and applying them to the current branch.

Verwendung

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

Hinweis

Pull can change your working branch and may cause conflicts.

Beispiel

git pull origin main

Anfragebeispiel

Before pulling, check whether I have local uncommitted changes.

Synchronisierung

push

push

git push origin qwen3.5

Bedeutung

Uploading local commits to a remote repository.

Verwendung

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

Hinweis

Push only uploads commits, not uncommitted working tree edits.

Beispiel

git push origin qwen3.5

Anfragebeispiel

Push the current branch after confirming the build passes.

Synchronisierung

origin

origin

git push origin qwen3.5

Bedeutung

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

Verwendung

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

Beispiel

git push origin qwen3.5

Anfragebeispiel

Check whether origin points to the expected GitHub repository.

Review

Pull Request

Pull Request

Open a PR from qwen3.5 into main

Bedeutung

A GitHub review page for discussing and merging branch changes.

Verwendung

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

Beispiel

Open a PR from qwen3.5 into main

Anfragebeispiel

Summarize what should go into the PR description.

Review

Review

Review

Review requested changes

Bedeutung

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

Verwendung

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

Beispiel

Review requested changes

Anfragebeispiel

Review this branch for bugs and missing tests.

Konflikte

Merge conflict

Merge conflict

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

Bedeutung

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

Verwendung

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

Hinweis

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

Beispiel

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

Anfragebeispiel

Explain the conflict and propose the safest resolution.

Konflikte

Conflict marker

Conflict marker

<<<<<<< HEAD

Bedeutung

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

Verwendung

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

Hinweis

Conflict markers should not remain in committed code.

Beispiel

<<<<<<< HEAD

Anfragebeispiel

Find any remaining conflict markers.

Konflikte

Untracked file

Untracked file

?? src/lib/git-github.ts

Bedeutung

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

Verwendung

New pages and components usually appear as untracked until staged.

Beispiel

?? src/lib/git-github.ts

Anfragebeispiel

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

Konflikte

Modified file

Modified file

M src/components/SiteHeader.tsx

Bedeutung

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

Verwendung

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

Beispiel

M src/components/SiteHeader.tsx

Anfragebeispiel

Show the modified files for this task.

Sicherheit

stash

stash

git stash push -m "before branch switch"

Bedeutung

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

Verwendung

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

Hinweis

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

Beispiel

git stash push -m "before branch switch"

Anfragebeispiel

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

Sicherheit

reset

reset

git reset --soft HEAD~1

Bedeutung

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

Verwendung

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

Hinweis

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

Beispiel

git reset --soft HEAD~1

Anfragebeispiel

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

Sicherheit

revert

revert

git revert abc1234

Bedeutung

Creating a new commit that undoes an earlier commit.

Verwendung

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

Beispiel

git revert abc1234

Anfragebeispiel

Revert the problematic commit without rewriting shared history.

Sicherheit

force push

force push

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

Bedeutung

Overwriting a remote branch with your local branch history.

Verwendung

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

Hinweis

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

Beispiel

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

Anfragebeispiel

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

Sicherheit

.gitignore

.gitignore

.next/

Bedeutung

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

Verwendung

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

Beispiel

.next/

Anfragebeispiel

Check whether build output is ignored properly.

Befehle

git status

git status

git status --short

Bedeutung

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

Verwendung

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

Beispiel

git status --short

Anfragebeispiel

Run git status and summarize only the important changes.

Befehle

git log

git log

git log --oneline -5

Bedeutung

A command for viewing commit history.

Verwendung

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

Beispiel

git log --oneline -5

Anfragebeispiel

Show the last five commits in a compact format.

Befehle

git add

git add

git add src/lib/git-github.ts

Bedeutung

A command that stages changes for the next commit.

Verwendung

Use explicit paths when you want a focused commit.

Beispiel

git add src/lib/git-github.ts

Anfragebeispiel

Stage only the files created for this page.

Befehle

git commit

git commit

git commit -m "Add Git terms reference"

Bedeutung

A command that records staged changes into repository history.

Verwendung

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

Beispiel

git commit -m "Add Git terms reference"

Anfragebeispiel

Commit the staged changes with a clear message.

Befehle

git pull

git pull

git pull --ff-only

Bedeutung

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

Verwendung

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

Beispiel

git pull --ff-only

Anfragebeispiel

Pull with ff-only if it is safe.

Befehle

git push

git push

git push origin HEAD

Bedeutung

A command that uploads local commits to a remote branch.

Verwendung

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

Beispiel

git push origin HEAD

Anfragebeispiel

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