Engineering Tools for AI

प्रोग्रामिंग

Git/GitHub शब्द

Repository, branch, commit, sync, PR, conflict और सुरक्षित Git काम समझने के लिए खोज योग्य संदर्भ।

33 मिलते शब्द

मुख्य अवधारणाएँ

Repository

Repository

engineerdoge/math-ai-tools

अर्थ

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

उपयोग

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

उदाहरण

engineerdoge/math-ai-tools

अनुरोध उदाहरण

Check the current repository status.

मुख्य अवधारणाएँ

Working tree

Working tree

git status

अर्थ

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

उपयोग

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

उदाहरण

git status

अनुरोध उदाहरण

Show what changed in the working tree.

मुख्य अवधारणाएँ

Staging area

Staging area

git add src/components/SiteHeader.tsx

अर्थ

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

उपयोग

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

नोट

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

उदाहरण

git add src/components/SiteHeader.tsx

अनुरोध उदाहरण

Stage only the files for the Git terms page.

मुख्य अवधारणाएँ

Commit

Commit

git commit -m "Add Git terms reference"

अर्थ

A saved snapshot of selected changes in the repository history.

उपयोग

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

उदाहरण

git commit -m "Add Git terms reference"

अनुरोध उदाहरण

Create a commit with a concise message.

मुख्य अवधारणाएँ

Diff

Diff

git diff

अर्थ

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

उपयोग

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

उदाहरण

git diff

अनुरोध उदाहरण

Review the diff for unexpected changes.

ब्रांच

Branch

Branch

qwen3.5

अर्थ

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

उपयोग

Branches let you develop a feature without changing main immediately.

उदाहरण

qwen3.5

अनुरोध उदाहरण

Tell me which branch I am currently on.

ब्रांच

main branch

main branch

main

अर्थ

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

उपयोग

Compare your working branch with main to see what changed.

उदाहरण

main

अनुरोध उदाहरण

Compare this branch against main.

ब्रांच

checkout

checkout

git switch qwen3.5

अर्थ

Changing the working tree to another branch or commit.

उपयोग

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

नोट

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

उदाहरण

git switch qwen3.5

अनुरोध उदाहरण

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

ब्रांच

merge

merge

git merge main

अर्थ

Combining changes from one branch into another branch.

उपयोग

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

नोट

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

उदाहरण

git merge main

अनुरोध उदाहरण

Explain what would happen before merging main into this branch.

ब्रांच

rebase

rebase

git rebase main

अर्थ

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

उपयोग

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

नोट

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

उदाहरण

git rebase main

अनुरोध उदाहरण

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

सिंक

clone

clone

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

अर्थ

Making a local copy of a remote repository.

उपयोग

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

उदाहरण

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

अनुरोध उदाहरण

Clone this repository and show the available branches.

सिंक

remote

remote

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

अर्थ

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

उपयोग

Remote settings decide where pull and push communicate.

उदाहरण

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

अनुरोध उदाहरण

Show the configured remotes.

सिंक

fetch

fetch

git fetch origin

अर्थ

Downloading remote branch information without changing your working files.

उपयोग

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

उदाहरण

git fetch origin

अनुरोध उदाहरण

Fetch from origin, then compare this branch with main.

सिंक

pull

pull

git pull origin main

अर्थ

Fetching remote changes and applying them to the current branch.

उपयोग

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

नोट

Pull can change your working branch and may cause conflicts.

उदाहरण

git pull origin main

अनुरोध उदाहरण

Before pulling, check whether I have local uncommitted changes.

सिंक

push

push

git push origin qwen3.5

अर्थ

Uploading local commits to a remote repository.

उपयोग

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

नोट

Push only uploads commits, not uncommitted working tree edits.

उदाहरण

git push origin qwen3.5

अनुरोध उदाहरण

Push the current branch after confirming the build passes.

सिंक

origin

origin

git push origin qwen3.5

अर्थ

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

उपयोग

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

उदाहरण

git push origin qwen3.5

अनुरोध उदाहरण

Check whether origin points to the expected GitHub repository.

समीक्षा

Pull Request

Pull Request

Open a PR from qwen3.5 into main

अर्थ

A GitHub review page for discussing and merging branch changes.

उपयोग

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

उदाहरण

Open a PR from qwen3.5 into main

अनुरोध उदाहरण

Summarize what should go into the PR description.

समीक्षा

Review

Review

Review requested changes

अर्थ

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

उपयोग

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

उदाहरण

Review requested changes

अनुरोध उदाहरण

Review this branch for bugs and missing tests.

कॉन्फ्लिक्ट

Merge conflict

Merge conflict

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

अर्थ

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

उपयोग

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

नोट

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

उदाहरण

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

अनुरोध उदाहरण

Explain the conflict and propose the safest resolution.

कॉन्फ्लिक्ट

Conflict marker

Conflict marker

<<<<<<< HEAD

अर्थ

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

उपयोग

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

नोट

Conflict markers should not remain in committed code.

उदाहरण

<<<<<<< HEAD

अनुरोध उदाहरण

Find any remaining conflict markers.

कॉन्फ्लिक्ट

Untracked file

Untracked file

?? src/lib/git-github.ts

अर्थ

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

उपयोग

New pages and components usually appear as untracked until staged.

उदाहरण

?? src/lib/git-github.ts

अनुरोध उदाहरण

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

कॉन्फ्लिक्ट

Modified file

Modified file

M src/components/SiteHeader.tsx

अर्थ

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

उपयोग

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

उदाहरण

M src/components/SiteHeader.tsx

अनुरोध उदाहरण

Show the modified files for this task.

सुरक्षा

stash

stash

git stash push -m "before branch switch"

अर्थ

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

उपयोग

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

नोट

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

उदाहरण

git stash push -m "before branch switch"

अनुरोध उदाहरण

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

सुरक्षा

reset

reset

git reset --soft HEAD~1

अर्थ

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

उपयोग

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

नोट

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

उदाहरण

git reset --soft HEAD~1

अनुरोध उदाहरण

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

सुरक्षा

revert

revert

git revert abc1234

अर्थ

Creating a new commit that undoes an earlier commit.

उपयोग

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

उदाहरण

git revert abc1234

अनुरोध उदाहरण

Revert the problematic commit without rewriting shared history.

सुरक्षा

force push

force push

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

अर्थ

Overwriting a remote branch with your local branch history.

उपयोग

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

नोट

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

उदाहरण

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

अनुरोध उदाहरण

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

सुरक्षा

.gitignore

.gitignore

.next/

अर्थ

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

उपयोग

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

उदाहरण

.next/

अनुरोध उदाहरण

Check whether build output is ignored properly.

कमांड

git status

git status

git status --short

अर्थ

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

उपयोग

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

उदाहरण

git status --short

अनुरोध उदाहरण

Run git status and summarize only the important changes.

कमांड

git log

git log

git log --oneline -5

अर्थ

A command for viewing commit history.

उपयोग

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

उदाहरण

git log --oneline -5

अनुरोध उदाहरण

Show the last five commits in a compact format.

कमांड

git add

git add

git add src/lib/git-github.ts

अर्थ

A command that stages changes for the next commit.

उपयोग

Use explicit paths when you want a focused commit.

उदाहरण

git add src/lib/git-github.ts

अनुरोध उदाहरण

Stage only the files created for this page.

कमांड

git commit

git commit

git commit -m "Add Git terms reference"

अर्थ

A command that records staged changes into repository history.

उपयोग

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

उदाहरण

git commit -m "Add Git terms reference"

अनुरोध उदाहरण

Commit the staged changes with a clear message.

कमांड

git pull

git pull

git pull --ff-only

अर्थ

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

उपयोग

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

उदाहरण

git pull --ff-only

अनुरोध उदाहरण

Pull with ff-only if it is safe.

कमांड

git push

git push

git push origin HEAD

अर्थ

A command that uploads local commits to a remote branch.

उपयोग

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

उदाहरण

git push origin HEAD

अनुरोध उदाहरण

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