conversations
listlengths
2
2
[ { "from": "human", "value": "Fork and clone a GitHub repository by its slug via the `git-fork` command" }, { "from": "gpt", "value": "`git fork {{tldr-pages/tldr}}`" } ]
[ { "from": "human", "value": "Tell me about `git format-patch`." }, { "from": "gpt", "value": "Prepare .patch files. Useful when emailing commits elsewhere.\nSee also `git am`, which can apply generated .patch files.\nMore information: <https://git-scm.com/docs/git-format-patch>.\n" } ]
[ { "from": "human", "value": "Create an auto-named `.patch` file for all the unpushed commits via the `git-format-patch` command" }, { "from": "gpt", "value": "`git format-patch {{origin}}`" } ]
[ { "from": "human", "value": "Write a `.patch` file for all the commits between 2 revisions to `stdout` via the `git-format-patch` command" }, { "from": "gpt", "value": "`git format-patch {{revision_1}}..{{revision_2}}`" } ]
[ { "from": "human", "value": "Write a `.patch` file for the 3 latest commits via the `git-format-patch` command" }, { "from": "gpt", "value": "`git format-patch -{{3}}`" } ]
[ { "from": "human", "value": "Tell me about `git fresh-branch`." }, { "from": "gpt", "value": "Create an empty local branch.\nPart of `git-extras`.\nMore information: <https://github.com/tj/git-extras/blob/master/Commands.md##git-fresh-branch>.\n" } ]
[ { "from": "human", "value": "Create an empty local branch via the `git-fresh-branch` command" }, { "from": "gpt", "value": "`git fresh-branch {{branch_name}}`" } ]
[ { "from": "human", "value": "Tell me about `git fsck`." }, { "from": "gpt", "value": "Verify the validity and connectivity of nodes in a Git repository index.\nDoes not make any modifications.\nSee also: `git gc` for cleaning up dangling blobs.\nMore information: <https://git-scm.com/docs/git-fs...
[ { "from": "human", "value": "Check the current repository via the `git-fsck` command" }, { "from": "gpt", "value": "`git fsck`" } ]
[ { "from": "human", "value": "List all tags found via the `git-fsck` command" }, { "from": "gpt", "value": "`git fsck --tags`" } ]
[ { "from": "human", "value": "List all root nodes found via the `git-fsck` command" }, { "from": "gpt", "value": "`git fsck --root`" } ]
[ { "from": "human", "value": "Tell me about `git gc`." }, { "from": "gpt", "value": "Optimise the local repository by cleaning unnecessary files.\nMore information: <https://git-scm.com/docs/git-gc>.\n" } ]
[ { "from": "human", "value": "Optimise the repository via the `git-gc` command" }, { "from": "gpt", "value": "`git gc`" } ]
[ { "from": "human", "value": "Aggressively optimise, takes more time via the `git-gc` command" }, { "from": "gpt", "value": "`git gc --aggressive`" } ]
[ { "from": "human", "value": "Do not prune loose objects (prunes by default) via the `git-gc` command" }, { "from": "gpt", "value": "`git gc --no-prune`" } ]
[ { "from": "human", "value": "Suppress all output via the `git-gc` command" }, { "from": "gpt", "value": "`git gc --quiet`" } ]
[ { "from": "human", "value": "Display help via the `git-gc` command" }, { "from": "gpt", "value": "`git gc --help`" } ]
[ { "from": "human", "value": "Tell me about `git gh-pages`." }, { "from": "gpt", "value": "Create a new branch inside the current repository called `gh-pages`.\nPart of `git-extras`.\nMore information: <https://github.com/tj/git-extras/blob/master/Commands.md#git-gh-pages>.\n" } ]
[ { "from": "human", "value": "Create the GitHub pages branch inside the repository in the current directory via the `git-gh-pages` command" }, { "from": "gpt", "value": "`git gh-pages`" } ]
[ { "from": "human", "value": "Tell me about `git graft`." }, { "from": "gpt", "value": "Merge commits from a branch into another branch and delete the source branch.\nPart of `git-extras`.\nMore information: <https://github.com/tj/git-extras/blob/master/Commands.md#git-graft>.\n" } ]
[ { "from": "human", "value": "Merge all commits not present on the target branch from the source branch to target branch, and delete the source branch via the `git-graft` command" }, { "from": "gpt", "value": "`git graft {{source_branch}} {{target_branch}}`" } ]
[ { "from": "human", "value": "Tell me about `git-grep`." }, { "from": "gpt", "value": "Find strings inside files anywhere in a repository's history.\nAccepts a lot of the same flags as regular `grep`.\nMore information: <https://git-scm.com/docs/git-grep>.\n" } ]
[ { "from": "human", "value": "Search for a string in tracked files via the `git-grep` command" }, { "from": "gpt", "value": "`git grep {{search_string}}`" } ]
[ { "from": "human", "value": "Search for a string in files matching a pattern in tracked files via the `git-grep` command" }, { "from": "gpt", "value": "`git grep {{search_string}} -- {{file_glob_pattern}}`" } ]
[ { "from": "human", "value": "Search for a string in tracked files, including submodules via the `git-grep` command" }, { "from": "gpt", "value": "`git grep --recurse-submodules {{search_string}}`" } ]
[ { "from": "human", "value": "Search for a string at a specific point in history via the `git-grep` command" }, { "from": "gpt", "value": "`git grep {{search_string}} {{HEAD~2}}`" } ]
[ { "from": "human", "value": "Search for a string across all branches via the `git-grep` command" }, { "from": "gpt", "value": "`git grep {{search_string}} $(git rev-list --all)`" } ]
[ { "from": "human", "value": "Tell me about `git guilt`." }, { "from": "gpt", "value": "Show total blame count for files with unstaged changes or calculate the change in blame between two revisions.\nPart of `git-extras`.\nMore information: <https://github.com/tj/git-extras/blob/master/Commands.m...
[ { "from": "human", "value": "Show total blame count via the `git-guilt` command" }, { "from": "gpt", "value": "`git guilt`" } ]
[ { "from": "human", "value": "Calculate the change in blame between two revisions via the `git-guilt` command" }, { "from": "gpt", "value": "`git guilt {{first_revision}} {{last_revision}}`" } ]
[ { "from": "human", "value": "Show author emails instead of names via the `git-guilt` command" }, { "from": "gpt", "value": "`git guilt --email`" } ]
[ { "from": "human", "value": "Ignore whitespace only changes when attributing blame via the `git-guilt` command" }, { "from": "gpt", "value": "`git guilt --ignore-whitespace`" } ]
[ { "from": "human", "value": "Find blame delta over the last three weeks via the `git-guilt` command" }, { "from": "gpt", "value": "`git guilt 'git log --until=\"3 weeks ago\" --format=\"%H\" -n 1'`" } ]
[ { "from": "human", "value": "Find blame delta over the last three weeks (git 1.8.5+) via the `git-guilt` command" }, { "from": "gpt", "value": "`git guilt @{3.weeks.ago}`" } ]
[ { "from": "human", "value": "Tell me about `git gui`." }, { "from": "gpt", "value": "A GUI for Git to manage branches, commits, and remotes, and perform local merges.\nSee also: `git-cola`, `gitk`.\nMore information: <https://git-scm.com/docs/git-gui>.\n" } ]
[ { "from": "human", "value": "Launch the GUI via the `git-gui` command" }, { "from": "gpt", "value": "`git gui`" } ]
[ { "from": "human", "value": "Show a specific file with author name and commit hash on each line via the `git-gui` command" }, { "from": "gpt", "value": "`git gui blame {{path/to/file}}`" } ]
[ { "from": "human", "value": "Open `git gui blame` in a specific revision via the `git-gui` command" }, { "from": "gpt", "value": "`git gui blame {{revision}} {{path/to/file}}`" } ]
[ { "from": "human", "value": "Open `git gui blame` and scroll the view to center on a specific line via the `git-gui` command" }, { "from": "gpt", "value": "`git gui blame --line={{line}} {{path/to/file}}`" } ]
[ { "from": "human", "value": "Open a window to make one commit and return to the shell when it is complete via the `git-gui` command" }, { "from": "gpt", "value": "`git gui citool`" } ]
[ { "from": "human", "value": "Open `git gui citool` in the \"Amend Last Commit\" mode via the `git-gui` command" }, { "from": "gpt", "value": "`git gui citool --amend`" } ]
[ { "from": "human", "value": "Open `git gui citool` in a read-only mode via the `git-gui` command" }, { "from": "gpt", "value": "`git gui citool --nocommit`" } ]
[ { "from": "human", "value": "Show a browser for the tree of a specific branch, opening the blame tool when clicking on the files via the `git-gui` command" }, { "from": "gpt", "value": "`git gui browser maint`" } ]
[ { "from": "human", "value": "Tell me about `git hash-object`." }, { "from": "gpt", "value": "Computes the unique hash key of content and optionally creates an object with specified type.\nMore information: <https://git-scm.com/docs/git-hash-object>.\n" } ]
[ { "from": "human", "value": "Compute the object ID without storing it via the `git-hash-object` command" }, { "from": "gpt", "value": "`git hash-object {{path/to/file}}`" } ]
[ { "from": "human", "value": "Compute the object ID and store it in the Git database via the `git-hash-object` command" }, { "from": "gpt", "value": "`git hash-object -w {{path/to/file}}`" } ]
[ { "from": "human", "value": "Compute the object ID specifying the object type via the `git-hash-object` command" }, { "from": "gpt", "value": "`git hash-object -t {{blob|commit|tag|tree}} {{path/to/file}}`" } ]
[ { "from": "human", "value": "Compute the object ID from `stdin` via the `git-hash-object` command" }, { "from": "gpt", "value": "`cat {{path/to/file}} | git hash-object --stdin`" } ]
[ { "from": "human", "value": "Tell me about `git help`." }, { "from": "gpt", "value": "Display help information about Git.\nMore information: <https://git-scm.com/docs/git-help>.\n" } ]
[ { "from": "human", "value": "Display help about a specific Git subcommand via the `git-help` command" }, { "from": "gpt", "value": "`git help {{subcommand}}`" } ]
[ { "from": "human", "value": "Display help about a specific Git subcommand in a web browser via the `git-help` command" }, { "from": "gpt", "value": "`git help --web {{subcommand}}`" } ]
[ { "from": "human", "value": "Display a list of all available Git subcommands via the `git-help` command" }, { "from": "gpt", "value": "`git help --all`" } ]
[ { "from": "human", "value": "List the available guides via the `git-help` command" }, { "from": "gpt", "value": "`git help --guide`" } ]
[ { "from": "human", "value": "List all possible configuration variables via the `git-help` command" }, { "from": "gpt", "value": "`git help --config`" } ]
[ { "from": "human", "value": "Tell me about `github-label-sync`." }, { "from": "gpt", "value": "Synchronize GitHub labels.\nMore information: <https://github.com/Financial-Times/github-label-sync>.\n" } ]
[ { "from": "human", "value": "Synchronize labels using a local `labels.json` file via the `github-label-sync` command" }, { "from": "gpt", "value": "`github-label-sync --access-token {{token}} {{repository_name}}`" } ]
[ { "from": "human", "value": "Synchronize labels using a specific labels JSON file via the `github-label-sync` command" }, { "from": "gpt", "value": "`github-label-sync --access-token {{token}} --labels {{url|path/to/json_file}} {{repository_name}}`" } ]
[ { "from": "human", "value": "Perform a dry run instead of actually synchronizing labels via the `github-label-sync` command" }, { "from": "gpt", "value": "`github-label-sync --access-token {{token}} --dry-run {{repository_name}}`" } ]
[ { "from": "human", "value": "Keep labels that aren't in `labels.json` via the `github-label-sync` command" }, { "from": "gpt", "value": "`github-label-sync --access-token {{token}} --allow-added-labels {{repository_name}}`" } ]
[ { "from": "human", "value": "Synchronize using the `GITHUB_ACCESS_TOKEN` environment variable via the `github-label-sync` command" }, { "from": "gpt", "value": "`github-label-sync {{repository_name}}`" } ]
[ { "from": "human", "value": "Tell me about `git ignore-io`." }, { "from": "gpt", "value": "Generate .gitignore files from predefined templates.\nMore information: <https://github.com/tj/git-extras/blob/master/Commands.md#git-ignore-io>.\n" } ]
[ { "from": "human", "value": "List available templates via the `git-ignore-io` command" }, { "from": "gpt", "value": "`git ignore-io list`" } ]
[ { "from": "human", "value": "Generate a .gitignore template via the `git-ignore-io` command" }, { "from": "gpt", "value": "`git ignore-io {{item_a,item_b,item_n}}`" } ]
[ { "from": "human", "value": "Tell me about `git ignore`." }, { "from": "gpt", "value": "Show/update `.gitignore` files.\nPart of `git-extras`. See also `git ignore-io`.\nMore information: <https://github.com/tj/git-extras/blob/master/Commands.md#git-ignore>.\n" } ]
[ { "from": "human", "value": "Show the content of all global and local `.gitignore` files via the `git-ignore` command" }, { "from": "gpt", "value": "`git ignore`" } ]
[ { "from": "human", "value": "Ignore file(s) privately, updating `.git/info/exclude` file via the `git-ignore` command" }, { "from": "gpt", "value": "`git ignore {{file_pattern}} --private`" } ]
[ { "from": "human", "value": "Ignore file(s) locally, updating local `.gitignore` file via the `git-ignore` command" }, { "from": "gpt", "value": "`git ignore {{file_pattern}}`" } ]
[ { "from": "human", "value": "Ignore file(s) globally, updating global `.gitignore` file via the `git-ignore` command" }, { "from": "gpt", "value": "`git ignore {{file_pattern}} --global`" } ]
[ { "from": "human", "value": "Tell me about `git-imerge`." }, { "from": "gpt", "value": "Perform a merge or rebase between two Git branches incrementally.\nConflicts between branches are tracked down to pairs of individual commits, to simplify conflict resolution.\nMore information: <https://gith...
[ { "from": "human", "value": "Start imerge-based rebase (checkout the branch to be rebased, first) via the `git-imerge` command" }, { "from": "gpt", "value": "`git imerge rebase {{branch_to_rebase_onto}}`" } ]
[ { "from": "human", "value": "Start imerge-based merge (checkout the branch to merge into, first) via the `git-imerge` command" }, { "from": "gpt", "value": "`git imerge merge {{branch_to_be_merged}}`" } ]
[ { "from": "human", "value": "Show ASCII diagram of in-progress merge or rebase via the `git-imerge` command" }, { "from": "gpt", "value": "`git imerge diagram`" } ]
[ { "from": "human", "value": "Continue imerge operation after resolving conflicts (`git add` the conflicted files, first) via the `git-imerge` command" }, { "from": "gpt", "value": "`git imerge continue --no-edit`" } ]
[ { "from": "human", "value": "Wrap up imerge operation, after all conflicts are resolved via the `git-imerge` command" }, { "from": "gpt", "value": "`git imerge finish`" } ]
[ { "from": "human", "value": "Abort imerge operation, and return to the previous branch via the `git-imerge` command" }, { "from": "gpt", "value": "`git-imerge remove && git checkout {{previous_branch}}`" } ]
[ { "from": "human", "value": "Tell me about `git info`." }, { "from": "gpt", "value": "Display Git repository information.\nPart of `git-extras`.\nMore information: <https://github.com/tj/git-extras/blob/master/Commands.md#git-info>.\n" } ]
[ { "from": "human", "value": "Display remote locations, remote and local branches, most recent commit data and `.git/config` settings via the `git-info` command" }, { "from": "gpt", "value": "`git info`" } ]
[ { "from": "human", "value": "Display remote locations, remote and local branches and most recent commit data via the `git-info` command" }, { "from": "gpt", "value": "`git info --no-config`" } ]
[ { "from": "human", "value": "Tell me about `git init`." }, { "from": "gpt", "value": "Initializes a new local Git repository.\nMore information: <https://git-scm.com/docs/git-init>.\n" } ]
[ { "from": "human", "value": "Initialize a new local repository via the `git-init` command" }, { "from": "gpt", "value": "`git init`" } ]
[ { "from": "human", "value": "Initialize a repository with the specified name for the initial branch via the `git-init` command" }, { "from": "gpt", "value": "`git init {{[-b|--initial-branch]}} {{branch_name}}`" } ]
[ { "from": "human", "value": "Initialize a repository using SHA256 for object hashes (requires Git version 2.29+) via the `git-init` command" }, { "from": "gpt", "value": "`git init --object-format {{sha256}}`" } ]
[ { "from": "human", "value": "Initialize a barebones repository, suitable for use as a remote over SSH via the `git-init` command" }, { "from": "gpt", "value": "`git init --bare`" } ]
[ { "from": "human", "value": "Tell me about `git instaweb`." }, { "from": "gpt", "value": "Helper to launch a GitWeb server.\nMore information: <https://git-scm.com/docs/git-instaweb>.\n" } ]
[ { "from": "human", "value": "Launch a GitWeb server for the current Git repository via the `git-instaweb` command" }, { "from": "gpt", "value": "`git instaweb --start`" } ]
[ { "from": "human", "value": "Listen only on localhost via the `git-instaweb` command" }, { "from": "gpt", "value": "`git instaweb --start --local`" } ]
[ { "from": "human", "value": "Listen on a specific port via the `git-instaweb` command" }, { "from": "gpt", "value": "`git instaweb --start --port {{1234}}`" } ]
[ { "from": "human", "value": "Use a specified HTTP daemon via the `git-instaweb` command" }, { "from": "gpt", "value": "`git instaweb --start --httpd {{lighttpd|apache2|mongoose|plackup|webrick}}`" } ]
[ { "from": "human", "value": "Also auto-launch a web browser via the `git-instaweb` command" }, { "from": "gpt", "value": "`git instaweb --start --browser`" } ]
[ { "from": "human", "value": "Stop the currently running GitWeb server via the `git-instaweb` command" }, { "from": "gpt", "value": "`git instaweb --stop`" } ]
[ { "from": "human", "value": "Restart the currently running GitWeb server via the `git-instaweb` command" }, { "from": "gpt", "value": "`git instaweb --restart`" } ]
[ { "from": "human", "value": "Tell me about `gitk`." }, { "from": "gpt", "value": "Browse Git repositories graphically.\nSee also: `git-gui`, `git-cola`, `tig`.\nMore information: <https://git-scm.com/docs/gitk>.\n" } ]
[ { "from": "human", "value": "Show the repository browser for the current Git repository via the `gitk` command" }, { "from": "gpt", "value": "`gitk`" } ]
[ { "from": "human", "value": "Show repository browser for a specific file or directory via the `gitk` command" }, { "from": "gpt", "value": "`gitk {{path/to/file_or_directory}}`" } ]
[ { "from": "human", "value": "Show commits made since 1 week ago via the `gitk` command" }, { "from": "gpt", "value": "`gitk --since=\"{{1 week ago}}\"`" } ]
[ { "from": "human", "value": "Show commits older than 1/1/2016 via the `gitk` command" }, { "from": "gpt", "value": "`gitk --until=\"{{1/1/2015}}\"`" } ]
[ { "from": "human", "value": "Show at most 100 changes in all branches via the `gitk` command" }, { "from": "gpt", "value": "`gitk --max-count=100 --all`" } ]
[ { "from": "human", "value": "Tell me about `gitlab-ctl`." }, { "from": "gpt", "value": "Manage the GitLab omnibus.\nMore information: <https://docs.gitlab.com/omnibus/maintenance/>.\n" } ]
[ { "from": "human", "value": "Display the status of every service via the `gitlab-ctl` command" }, { "from": "gpt", "value": "`sudo gitlab-ctl status`" } ]
[ { "from": "human", "value": "Display the status of a specific service via the `gitlab-ctl` command" }, { "from": "gpt", "value": "`sudo gitlab-ctl status {{nginx}}`" } ]