conversations listlengths 2 2 |
|---|
[
{
"from": "human",
"value": "Show changed files which are not yet added for commit via the `git-status` command"
},
{
"from": "gpt",
"value": "`git status`"
}
] |
[
{
"from": "human",
"value": "Give output in short format via the `git-status` command"
},
{
"from": "gpt",
"value": "`git status {{[-s|--short]}}`"
}
] |
[
{
"from": "human",
"value": "Show verbose information on changes in both the staging area and working directory via the `git-status` command"
},
{
"from": "gpt",
"value": "`git status {{[-vv|--verbose --verbose]}}`"
}
] |
[
{
"from": "human",
"value": "Show the branch and tracking info via the `git-status` command"
},
{
"from": "gpt",
"value": "`git status {{[-b|--branch]}}`"
}
] |
[
{
"from": "human",
"value": "Show output in short format along with branch info via the `git-status` command"
},
{
"from": "gpt",
"value": "`git status {{[-sb|--short --branch]}}`"
}
] |
[
{
"from": "human",
"value": "Show the number of entries currently stashed away via the `git-status` command"
},
{
"from": "gpt",
"value": "`git status --show-stash`"
}
] |
[
{
"from": "human",
"value": "Don't show untracked files in the output via the `git-status` command"
},
{
"from": "gpt",
"value": "`git status {{[-uno|--untracked-files=no]}}`"
}
] |
[
{
"from": "human",
"value": "Tell me about `git stripspace`."
},
{
"from": "gpt",
"value": "Read text (e.g. commit messages, notes, tags, and branch descriptions) from `stdin` and clean it into the manner used by Git.\nMore information: <https://git-scm.com/docs/git-stripspace>.\n"
}
] |
[
{
"from": "human",
"value": "Trim whitespace from a file via the `git-stripspace` command"
},
{
"from": "gpt",
"value": "`cat {{path/to/file}} | git stripspace`"
}
] |
[
{
"from": "human",
"value": "Trim whitespace and Git comments from a file via the `git-stripspace` command"
},
{
"from": "gpt",
"value": "`cat {{path/to/file}} | git stripspace --strip-comments`"
}
] |
[
{
"from": "human",
"value": "Convert all lines in a file into Git comments via the `git-stripspace` command"
},
{
"from": "gpt",
"value": "`git stripspace --comment-lines < {{path/to/file}}`"
}
] |
[
{
"from": "human",
"value": "Tell me about `git submodule`."
},
{
"from": "gpt",
"value": "Inspects, updates and manages submodules.\nMore information: <https://git-scm.com/docs/git-submodule>.\n"
}
] |
[
{
"from": "human",
"value": "Install a repository's specified submodules via the `git-submodule` command"
},
{
"from": "gpt",
"value": "`git submodule update --init --recursive`"
}
] |
[
{
"from": "human",
"value": "Add a Git repository as a submodule via the `git-submodule` command"
},
{
"from": "gpt",
"value": "`git submodule add {{repository_url}}`"
}
] |
[
{
"from": "human",
"value": "Add a Git repository as a submodule at the specified directory via the `git-submodule` command"
},
{
"from": "gpt",
"value": "`git submodule add {{repository_url}} {{path/to/directory}}`"
}
] |
[
{
"from": "human",
"value": "Update every submodule to its latest commit via the `git-submodule` command"
},
{
"from": "gpt",
"value": "`git submodule foreach git pull`"
}
] |
[
{
"from": "human",
"value": "Tell me about `git subtree`."
},
{
"from": "gpt",
"value": "Manage project dependencies as subprojects.\nMore information: <https://manpages.debian.org/latest/git-man/git-subtree.1.html>.\n"
}
] |
[
{
"from": "human",
"value": "Add a Git repository as a subtree via the `git-subtree` command"
},
{
"from": "gpt",
"value": "`git subtree add --prefix={{path/to/directory/}} --squash {{repository_url}} {{branch_name}}`"
}
] |
[
{
"from": "human",
"value": "Update subtree repository to its latest commit via the `git-subtree` command"
},
{
"from": "gpt",
"value": "`git subtree pull --prefix={{path/to/directory/}} {{repository_url}} {{branch_name}}`"
}
] |
[
{
"from": "human",
"value": "Merge recent changes up to the latest subtree commit into the subtree via the `git-subtree` command"
},
{
"from": "gpt",
"value": "`git subtree merge --prefix={{path/to/directory/}} --squash {{repository_url}} {{branch_name}}`"
}
] |
[
{
"from": "human",
"value": "Push commits to a subtree repository via the `git-subtree` command"
},
{
"from": "gpt",
"value": "`git subtree push --prefix={{path/to/directory/}} {{repository_url}} {{branch_name}}`"
}
] |
[
{
"from": "human",
"value": "Extract a new project history from the history of a subtree via the `git-subtree` command"
},
{
"from": "gpt",
"value": "`git subtree split --prefix={{path/to/directory/}} {{repository_url}} -b {{branch_name}}`"
}
] |
[
{
"from": "human",
"value": "Tell me about `git summary`."
},
{
"from": "gpt",
"value": "Display information about a Git repository.\nPart of `git-extras`.\nMore information: <https://github.com/tj/git-extras/blob/master/Commands.md#git-summary>.\n"
}
] |
[
{
"from": "human",
"value": "Display data about a Git repository via the `git-summary` command"
},
{
"from": "gpt",
"value": "`git summary`"
}
] |
[
{
"from": "human",
"value": "Display data about a Git repository since a commit-ish via the `git-summary` command"
},
{
"from": "gpt",
"value": "`git summary {{commit|branch_name|tag_name}}`"
}
] |
[
{
"from": "human",
"value": "Display data about a Git repository, merging committers using different emails into 1 statistic for each author via the `git-summary` command"
},
{
"from": "gpt",
"value": "`git summary --dedup-by-email`"
}
] |
[
{
"from": "human",
"value": "Display data about a Git repository, showing the number of lines modified by each contributor via the `git-summary` command"
},
{
"from": "gpt",
"value": "`git summary --line`"
}
] |
[
{
"from": "human",
"value": "Tell me about `git svn`."
},
{
"from": "gpt",
"value": "Bidirectional operation between a Subversion repository and Git.\nMore information: <https://git-scm.com/docs/git-svn>.\n"
}
] |
[
{
"from": "human",
"value": "Clone an SVN repository via the `git-svn` command"
},
{
"from": "gpt",
"value": "`git svn clone {{https://example.com/subversion_repo}} {{local_dir}}`"
}
] |
[
{
"from": "human",
"value": "Clone an SVN repository starting at a given revision number via the `git-svn` command"
},
{
"from": "gpt",
"value": "`git svn clone {{[-r|--revision]}} {{1234}}:HEAD {{https://svn.example.net/subversion/repo}} {{local_dir}}`"
}
] |
[
{
"from": "human",
"value": "Update local clone from the remote SVN repository via the `git-svn` command"
},
{
"from": "gpt",
"value": "`git svn rebase`"
}
] |
[
{
"from": "human",
"value": "Fetch updates from the remote SVN repository without changing the Git HEAD via the `git-svn` command"
},
{
"from": "gpt",
"value": "`git svn fetch`"
}
] |
[
{
"from": "human",
"value": "Commit back to the SVN repository via the `git-svn` command"
},
{
"from": "gpt",
"value": "`git svn commit`"
}
] |
[
{
"from": "human",
"value": "Tell me about `git switch`."
},
{
"from": "gpt",
"value": "Switch between Git branches. Requires Git version 2.23+.\nSee also `git checkout`.\nMore information: <https://git-scm.com/docs/git-switch>.\n"
}
] |
[
{
"from": "human",
"value": "Switch to an existing branch via the `git-switch` command"
},
{
"from": "gpt",
"value": "`git switch {{branch_name}}`"
}
] |
[
{
"from": "human",
"value": "Create a new branch and switch to it via the `git-switch` command"
},
{
"from": "gpt",
"value": "`git switch {{[-c|--create]}} {{branch_name}}`"
}
] |
[
{
"from": "human",
"value": "Create a new branch based on an existing commit and switch to it via the `git-switch` command"
},
{
"from": "gpt",
"value": "`git switch {{[-c|--create]}} {{branch_name}} {{commit}}`"
}
] |
[
{
"from": "human",
"value": "Switch to the previous branch via the `git-switch` command"
},
{
"from": "gpt",
"value": "`git switch -`"
}
] |
[
{
"from": "human",
"value": "Switch to a branch and update all submodules to match via the `git-switch` command"
},
{
"from": "gpt",
"value": "`git switch --recurse-submodules {{branch_name}}`"
}
] |
[
{
"from": "human",
"value": "Switch to a branch and automatically merge the current branch and any uncommitted changes into it via the `git-switch` command"
},
{
"from": "gpt",
"value": "`git switch {{[-m|--merge]}} {{branch_name}}`"
}
] |
[
{
"from": "human",
"value": "Tell me about `git symbolic-ref`."
},
{
"from": "gpt",
"value": "Read, change, or delete files that store references.\nMore information: <https://git-scm.com/docs/git-symbolic-ref>.\n"
}
] |
[
{
"from": "human",
"value": "Store a reference by a name via the `git-symbolic-ref` command"
},
{
"from": "gpt",
"value": "`git symbolic-ref refs/{{name}} {{ref}}`"
}
] |
[
{
"from": "human",
"value": "Store a reference by name, including a message with a reason for the update via the `git-symbolic-ref` command"
},
{
"from": "gpt",
"value": "`git symbolic-ref -m \"{{message}}\" refs/{{name}} refs/heads/{{branch_name}}`"
}
] |
[
{
"from": "human",
"value": "Read a reference by name via the `git-symbolic-ref` command"
},
{
"from": "gpt",
"value": "`git symbolic-ref refs/{{name}}`"
}
] |
[
{
"from": "human",
"value": "Delete a reference by name via the `git-symbolic-ref` command"
},
{
"from": "gpt",
"value": "`git symbolic-ref --delete refs/{{name}}`"
}
] |
[
{
"from": "human",
"value": "For scripting, hide errors with `--quiet` and use `--short` to simplify (\"refs/heads/X\" prints as \"X\") via the `git-symbolic-ref` command"
},
{
"from": "gpt",
"value": "`git symbolic-ref --quiet --short refs/{{name}}`"
}
] |
[
{
"from": "human",
"value": "Tell me about `git sync`."
},
{
"from": "gpt",
"value": "Sync local branches with remote branches.\nPart of `git-extras`.\nMore information: <https://github.com/tj/git-extras/blob/master/Commands.md#git-sync>.\n"
}
] |
[
{
"from": "human",
"value": "Sync the current local branch with its remote branch via the `git-sync` command"
},
{
"from": "gpt",
"value": "`git sync`"
}
] |
[
{
"from": "human",
"value": "Sync the current local branch with the remote main branch via the `git-sync` command"
},
{
"from": "gpt",
"value": "`git sync origin main`"
}
] |
[
{
"from": "human",
"value": "Sync without cleaning untracked files via the `git-sync` command"
},
{
"from": "gpt",
"value": "`git sync -s {{remote_name}} {{branch_name}}`"
}
] |
[
{
"from": "human",
"value": "Tell me about `git tag`."
},
{
"from": "gpt",
"value": "Create, list, delete or verify tags.\nA tag is a static reference to a commit.\nMore information: <https://git-scm.com/docs/git-tag>.\n"
}
] |
[
{
"from": "human",
"value": "List all tags via the `git-tag` command"
},
{
"from": "gpt",
"value": "`git tag`"
}
] |
[
{
"from": "human",
"value": "Create a tag with the given name pointing to the current commit via the `git-tag` command"
},
{
"from": "gpt",
"value": "`git tag {{tag_name}}`"
}
] |
[
{
"from": "human",
"value": "Create a tag with the given name pointing to a given commit via the `git-tag` command"
},
{
"from": "gpt",
"value": "`git tag {{tag_name}} {{commit}}`"
}
] |
[
{
"from": "human",
"value": "Create an annotated tag with the given message via the `git-tag` command"
},
{
"from": "gpt",
"value": "`git tag {{tag_name}} {{[-m|--message]}} {{tag_message}}`"
}
] |
[
{
"from": "human",
"value": "Delete the tag with the given name via the `git-tag` command"
},
{
"from": "gpt",
"value": "`git tag {{[-d|--delete]}} {{tag_name}}`"
}
] |
[
{
"from": "human",
"value": "Get updated tags from remote via the `git-tag` command"
},
{
"from": "gpt",
"value": "`git fetch {{[-t|--tags]}}`"
}
] |
[
{
"from": "human",
"value": "Push a tag to remote via the `git-tag` command"
},
{
"from": "gpt",
"value": "`git push origin tag {{tag_name}}`"
}
] |
[
{
"from": "human",
"value": "List all tags whose ancestors include a given commit via the `git-tag` command"
},
{
"from": "gpt",
"value": "`git tag --contains {{commit}}`"
}
] |
[
{
"from": "human",
"value": "Tell me about `git touch`."
},
{
"from": "gpt",
"value": "Create new files and add them to the index.\nPart of `git-extras`.\nMore information: <https://github.com/tj/git-extras/blob/master/Commands.md#git-touch>.\n"
}
] |
[
{
"from": "human",
"value": "Create new files and add them to the index via the `git-touch` command"
},
{
"from": "gpt",
"value": "`git touch {{path/to/file1 path/to/file2 ...}}`"
}
] |
[
{
"from": "human",
"value": "Tell me about `gitui`."
},
{
"from": "gpt",
"value": "A lightweight keyboard-only TUI for Git.\nSee also: `tig`, `git-gui`.\nMore information: <https://github.com/extrawurst/gitui>.\n"
}
] |
[
{
"from": "human",
"value": "Specify the color theme (defaults to `theme.ron`) via the `gitui` command"
},
{
"from": "gpt",
"value": "`gitui --theme {{theme}}`"
}
] |
[
{
"from": "human",
"value": "Store logging output into a cache directory via the `gitui` command"
},
{
"from": "gpt",
"value": "`gitui --logging`"
}
] |
[
{
"from": "human",
"value": "Use notify-based file system watcher instead of tick-based update via the `gitui` command"
},
{
"from": "gpt",
"value": "`gitui --watcher`"
}
] |
[
{
"from": "human",
"value": "Generate a bug report via the `gitui` command"
},
{
"from": "gpt",
"value": "`gitui --bugreport`"
}
] |
[
{
"from": "human",
"value": "Use a specific Git directory via the `gitui` command"
},
{
"from": "gpt",
"value": "`gitui --directory {{path/to/directory}}`"
}
] |
[
{
"from": "human",
"value": "Use a specific working directory via the `gitui` command"
},
{
"from": "gpt",
"value": "`gitui --workdir {{path/to/directory}}`"
}
] |
[
{
"from": "human",
"value": "Display help via the `gitui` command"
},
{
"from": "gpt",
"value": "`gitui --help`"
}
] |
[
{
"from": "human",
"value": "Display version via the `gitui` command"
},
{
"from": "gpt",
"value": "`gitui --version`"
}
] |
[
{
"from": "human",
"value": "Tell me about `git undo`."
},
{
"from": "gpt",
"value": "Undo recent commits.\nPart of `git-extras`.\nMore information: <https://github.com/tj/git-extras/blob/master/Commands.md#git-undo>.\n"
}
] |
[
{
"from": "human",
"value": "Remove the most recent commit via the `git-undo` command"
},
{
"from": "gpt",
"value": "`git undo`"
}
] |
[
{
"from": "human",
"value": "Remove a specific number of the most recent commits via the `git-undo` command"
},
{
"from": "gpt",
"value": "`git undo {{3}}`"
}
] |
[
{
"from": "human",
"value": "Tell me about `git unlock`."
},
{
"from": "gpt",
"value": "Unlock a file in a Git repository so it can be modified by a commit.\nPart of `git-extras`. See also `git lock`.\nMore information: <https://github.com/tj/git-extras/blob/master/Commands.md#git-unlock>.\n"
... |
[
{
"from": "human",
"value": "Enable the ability to commit changes of a previously-locked local file via the `git-unlock` command"
},
{
"from": "gpt",
"value": "`git unlock {{path/to/file}}`"
}
] |
[
{
"from": "human",
"value": "Tell me about `git unpack-file`."
},
{
"from": "gpt",
"value": "Create a temporary file with a blob's contents.\nMore information: <https://git-scm.com/docs/git-unpack-file>.\n"
}
] |
[
{
"from": "human",
"value": "Create a file holding the contents of the blob specified by its ID then print the name of the temporary file via the `git-unpack-file` command"
},
{
"from": "gpt",
"value": "`git unpack-file {{blob_id}}`"
}
] |
[
{
"from": "human",
"value": "Tell me about `git update-index`."
},
{
"from": "gpt",
"value": "Git command for manipulating the index.\nMore information: <https://git-scm.com/docs/git-update-index>.\n"
}
] |
[
{
"from": "human",
"value": "Pretend that a modified file is unchanged (`git status` will not show this as changed) via the `git-update-index` command"
},
{
"from": "gpt",
"value": "`git update-index --skip-worktree {{path/to/modified_file}}`"
}
] |
[
{
"from": "human",
"value": "Tell me about `git update-ref`."
},
{
"from": "gpt",
"value": "Git command for creating, updating, and deleting Git refs.\nMore information: <https://git-scm.com/docs/git-update-ref>.\n"
}
] |
[
{
"from": "human",
"value": "Delete a ref, useful for soft resetting the first commit via the `git-update-ref` command"
},
{
"from": "gpt",
"value": "`git update-ref -d {{HEAD}}`"
}
] |
[
{
"from": "human",
"value": "Update ref with a message via the `git-update-ref` command"
},
{
"from": "gpt",
"value": "`git update-ref -m {{message}} {{HEAD}} {{4e95e05}}`"
}
] |
[
{
"from": "human",
"value": "Tell me about `git utimes`."
},
{
"from": "gpt",
"value": "Change files modification time to their last commit date. Does not touch files that are in the working tree or index.\nPart of `git-extras`.\nMore information: <https://github.com/tj/git-extras/blob/master/Co... |
[
{
"from": "human",
"value": "Change all files modification time to their last commit date via the `git-utimes` command"
},
{
"from": "gpt",
"value": "`git utimes`"
}
] |
[
{
"from": "human",
"value": "Change files modification time that are newer than their last commit date, preserving original modification time of files that were committed from the local repository via the `git-utimes` command"
},
{
"from": "gpt",
"value": "`git utimes --newer`"
}
] |
[
{
"from": "human",
"value": "Tell me about `git var`."
},
{
"from": "gpt",
"value": "Print a Git logical variable's value.\nSee `git config`, which is preferred over `git var`.\nMore information: <https://git-scm.com/docs/git-var>.\n"
}
] |
[
{
"from": "human",
"value": "Print the value of a Git logical variable via the `git-var` command"
},
{
"from": "gpt",
"value": "`git var {{GIT_AUTHOR_IDENT|GIT_COMMITTER_IDENT|GIT_EDITOR|GIT_PAGER}}`"
}
] |
[
{
"from": "human",
"value": "[l]ist all Git logical variables via the `git-var` command"
},
{
"from": "gpt",
"value": "`git var -l`"
}
] |
[
{
"from": "human",
"value": "Tell me about `git verify-commit`."
},
{
"from": "gpt",
"value": "Check for GPG verification of commits.\nIf no commits are verified, nothing will be printed, regardless of options specified.\nMore information: <https://git-scm.com/docs/git-verify-commit>.\n"
}
] |
[
{
"from": "human",
"value": "Check commits for a GPG signature via the `git-verify-commit` command"
},
{
"from": "gpt",
"value": "`git verify-commit {{commit_hash1 optional_commit_hash2 ...}}`"
}
] |
[
{
"from": "human",
"value": "Check commits for a GPG signature and show details of each commit via the `git-verify-commit` command"
},
{
"from": "gpt",
"value": "`git verify-commit {{commit_hash1 optional_commit_hash2 ...}} --verbose`"
}
] |
[
{
"from": "human",
"value": "Check commits for a GPG signature and print the raw details via the `git-verify-commit` command"
},
{
"from": "gpt",
"value": "`git verify-commit {{commit_hash1 optional_commit_hash2 ...}} --raw`"
}
] |
[
{
"from": "human",
"value": "Tell me about `git verify-pack`."
},
{
"from": "gpt",
"value": "Verify packed Git archive files.\nMore information: <https://git-scm.com/docs/git-verify-pack>.\n"
}
] |
[
{
"from": "human",
"value": "Verify a packed Git archive file via the `git-verify-pack` command"
},
{
"from": "gpt",
"value": "`git verify-pack {{path/to/pack-file}}`"
}
] |
[
{
"from": "human",
"value": "Verify a packed Git archive file and show verbose details via the `git-verify-pack` command"
},
{
"from": "gpt",
"value": "`git verify-pack --verbose {{path/to/pack-file}}`"
}
] |
[
{
"from": "human",
"value": "Verify a packed Git archive file and only display the statistics via the `git-verify-pack` command"
},
{
"from": "gpt",
"value": "`git verify-pack --stat-only {{path/to/pack-file}}`"
}
] |
[
{
"from": "human",
"value": "Tell me about `git verify-tag`."
},
{
"from": "gpt",
"value": "Check for GPG verification of tags.\nIf a tag wasn't signed, an error will occur.\nMore information: <https://git-scm.com/docs/git-verify-tag>.\n"
}
] |
[
{
"from": "human",
"value": "Check tags for a GPG signature via the `git-verify-tag` command"
},
{
"from": "gpt",
"value": "`git verify-tag {{tag1 optional_tag2 ...}}`"
}
] |
[
{
"from": "human",
"value": "Check tags for a GPG signature and show details for each tag via the `git-verify-tag` command"
},
{
"from": "gpt",
"value": "`git verify-tag {{tag1 optional_tag2 ...}} --verbose`"
}
] |
[
{
"from": "human",
"value": "Check tags for a GPG signature and print the raw details via the `git-verify-tag` command"
},
{
"from": "gpt",
"value": "`git verify-tag {{tag1 optional_tag2 ...}} --raw`"
}
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.