[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"detail-sidebar-cat-0-en-105":3,"doc-seo-760084-105":59,"doc-detail-760084-en":129,"doc-similar-760084":161},{"code":4,"msg":5,"data":6},0,"success",[7,13,18,23,28,33,38,43,48,51,55],{"id":8,"doc_module":4,"doc_module_name":9,"category_name":10,"show_sort_weight":11,"slug":12},1,"Document","Story & Novel",90,"story-novel",{"id":14,"doc_module":4,"doc_module_name":9,"category_name":15,"show_sort_weight":16,"slug":17},2,"Literature",80,"literature",{"id":19,"doc_module":4,"doc_module_name":9,"category_name":20,"show_sort_weight":21,"slug":22},4,"Exam",70,"exam",{"id":24,"doc_module":4,"doc_module_name":9,"category_name":25,"show_sort_weight":26,"slug":27},5,"Comic",60,"comic",{"id":29,"doc_module":4,"doc_module_name":9,"category_name":30,"show_sort_weight":31,"slug":32},6,"Technology",50,"technology",{"id":34,"doc_module":4,"doc_module_name":9,"category_name":35,"show_sort_weight":36,"slug":37},7,"Healthcare",40,"healthcare",{"id":39,"doc_module":4,"doc_module_name":9,"category_name":40,"show_sort_weight":41,"slug":42},8,"Research & Report",30,"research-report",{"id":44,"doc_module":4,"doc_module_name":9,"category_name":45,"show_sort_weight":46,"slug":47},9,"Religion & Spirituality",20,"religion-spirituality",{"id":46,"doc_module":4,"doc_module_name":9,"category_name":49,"show_sort_weight":46,"slug":50},"World Cup","world-cup",{"id":52,"doc_module":4,"doc_module_name":9,"category_name":53,"show_sort_weight":52,"slug":54},10,"Lifestyle","lifestyle",{"id":56,"doc_module":4,"doc_module_name":9,"category_name":57,"show_sort_weight":24,"slug":58},19,"General","general",{"code":4,"msg":60,"data":61},"ok",{"site_id":62,"language":63,"slug":64,"title":65,"keywords":66,"description":67,"schema_data":68,"social_meta":122,"head_meta":124,"extra_data":126,"updated_unix":128},105,"en","a-lightweight-api-for-git-version-010","A Lightweight API for Git - Version 0.1.0","","A lightweight, dependency-free R API for calling system-level Git commands from within R. Provides wrappers and sensible defaults for common data-science workflows, plus Zsh plugin alias helpers for frequent tasks. Includes a generalized API syntax and utility functions for branch discovery, checkout operations, commit-message retrieval, staging resets, diffs between commits, and additional Git helpers such as version and repository checks, enabling streamlined, scriptable Git usage.",{"@graph":69,"@context":121},[70,84,104],{"@type":71,"itemListElement":72},"BreadcrumbList",[73,77,79,82],{"item":74,"name":75,"@type":76,"position":8},"https://docshare.wps.com","Home","ListItem",{"item":78,"name":9,"@type":76,"position":14},"https://docshare.wps.com/document/",{"item":80,"name":30,"@type":76,"position":81},"https://docshare.wps.com/document/technology/",3,{"item":83,"name":65,"@type":76,"position":19},"https://docshare.wps.com/document/a-lightweight-api-for-git-version-010/760084/",{"url":83,"name":65,"@type":85,"image":86,"author":91,"headline":65,"publisher":94,"fileFormat":97,"inLanguage":63,"description":67,"dateModified":98,"datePublished":98,"encodingFormat":97,"isAccessibleForFree":99,"interactionStatistic":100},"DigitalDocument",{"url":87,"@type":88,"width":89,"height":90},"https://docshare.wps.com/thumbnails/a-lightweight-api-for-git-version-010/760084.png","ImageObject",300,407,{"name":92,"@type":93},"Mimi","Person",{"url":74,"name":95,"@type":96},"DocShare","Organization","application/pdf","2026-11-28",true,{"@type":101,"interactionType":102,"userInteractionCount":8},"InteractionCounter",{"@type":103},"ViewAction",{"@type":105,"mainEntity":106},"FAQPage",[107,113,117],{"name":108,"@type":109,"acceptedAnswer":110},"What does gitr provide for R users?","Question",{"text":111,"@type":112},"It provides wrappers and a generalized API to run Git commands from within R, with defaults for common workflows.","Answer",{"name":114,"@type":109,"acceptedAnswer":115},"How does the package help with branching tasks?",{"text":116,"@type":112},"It includes functions to get the default branch, current branch, and local branches, supporting branch-oriented workflows.",{"name":118,"@type":109,"acceptedAnswer":119},"Which Git actions are covered by commit utilities?",{"text":120,"@type":112},"It supports commit-message scraping, unstaging, soft/hard resets, uncommitting helpers, and diffing between commits.","https://schema.org",{"og:url":83,"og:type":123,"og:title":65,"og:site_name":95,"og:description":67},"article",{"robots":125,"canonical":83},"index,follow",{"doc_id":127,"site_id":62},760084,1795898460,{"code":4,"msg":5,"data":130},{"doc_id":127,"user_id":131,"nickname":92,"user_avatar":132,"doc_module":4,"category_id":29,"category_name":30,"doc_title":65,"doc_description":67,"doc_content":133,"file_id":134,"file_url":135,"file_type":136,"file_size":137,"view_count":8,"is_deleted":4,"is_public":8,"is_downloadable":8,"audit_status":8,"page_count":138,"language":139,"language_code":63,"site_id":62,"html_lang":63,"table_of_contents":140,"faqs":141,"seo_title":142,"seo_description":67,"update_tm":128,"read_time":143,"preview_page_count":19,"preview_urls":144},2336477974920,"https://ap-avatar.wpscdn.com/davatar_155a257f0dc6eb9ab79c44ca47cae57d","Package ‘gitr’  \nMay 8, 2026  \nTitle A Lightweight API for 'Git'Version 0.1.0  \nDescription A light-weight, dependency-free, application programming interface (API) to access system-level 'Git' \u003C[https://git-scm.com/downloads](https://git-scm.com/downloads)> commands  \nfrom within 'R'. Contains wrappers and defaults for common data science  \nworkflows as well as 'Zsh' \u003Chttps://github.com/ohmyzsh/ohmyzsh> plugin aliases. A generalized API syntax is also available.  \nLicense MIT + file LICENSE  \nURL [https://stufield.github.io/gitr/](https://stufield.github.io/gitr/)  \nBugReports [https://github.com/stufield/gitr/issues](https://github.com/stufield/gitr/issues)[ ](https://github.com/stufield/gitr/issues)Depends R (>= 4.1.0)  \nSuggests knitr, rmarkdown, spelling, testthat (>= 3.0.0), withr VignetteBuilder knitr  \nEncoding UTF-8 LazyLoad true Copyright Stu Field 2025 Config/testthat/edition 3  \nConfig/Needs/website tidyverse/tidytemplate RoxygenNote 7.3.1  \nLanguage en-US  \nCollate 'gitr-params.R' 'gitr-package.R' 'gitr.R' 'gitr-branch.R''gitr-checkout.R' 'gitr-commit.R' 'gitr-lint-commit.R''gitr-pr.R' 'gitr-sitrep.R' 'gitr-tag.R' 'gitr-trim-sha.R''gitr-utils.R' 'zsh.R'  \nNeedsCompilation no  \nAuthor Stu Field [aut, cre, cph](ORCID:  \n\u003C[https://orcid.org/0000-0002-1024-5859](https://orcid.org/0000-0002-1024-5859)>) Maintainer Stu Field \u003C[stu.g.field@gmail.com](stu.g.field@gmail.com)> Repository CRAN  \nDate/Publication 2025-04-21 07:00:02 UTC  \nContents  \nbranch ............................................ 2  \ncheckout ........................................... 3  \ncommit ........................................... 3  \ngit .............................................. 5  \nlint .............................................. 6  \nparams ............................................ 6  \npr .............................................. 7  \nsha .............................................. 8  \nsitrep ............................................ 9  \ntag .............................................. 9  \nzsh .............................................. 10  \nIndex 14  \n\n| branch | Git Branch Utilities |\n| --- | --- |\n\nDescription  \nGit Branch Utilities  \nUsage  \ngitr_default_br()  \ngitr_current_br()  \ngitr_local_br()  \nValue  \ncharacter(1) . The name of the respective branch if found, otherwise NULL.  \nFunctions  \n• gitr_default_br() : gets the default \"main\" branch, typically either master, main, or trunk.  \n• gitr_current_br() : gets the current branch.  \n• gitr_local_br() : gets all the local branches.  \ncheckout 3  \n\n| checkout | Git Checkout |\n| --- | --- |\n\nDescription  \nChecks out as a branch if doesn’t exist. Branch oriented workflow for switching between branches. If file is passed, checks out the file. A common shortcut to undoing local changes to a file(s) . Can be a vector of multiple files.  \nUsage  \ngitr_checkout(branch = NULL, file = NULL)  \nArguments  \nbranch character(1) . The name of a branch, typically a feature branch.  \nfile character(1) . The path to a file.  \nValue  \nNULL ... invisibly.  \nExamples  \n\\#\\# Not run:  \ngitr_checkout(\"feature-br\")  \ngitr_checkout(file = \"DESCRIPTION\")  \n\\#\\# End(Not run)  \n\n| commit | Git Commit Utilities |\n| --- | --- |\n\nDescription  \nGit Commit Utilities  \nUsage  \ngitr_commit_msgs(sha = NULL, n = 1L) scrape_commits(n)  \ngitr_unstage(file = NULL)  \n4 commit gitr_reset_soft(n = 1L)  \ngitr_uncommit()  \ngitr_reset_hard()  \ngitr_diff_commits(top = 1L, n = 2L)  \nArguments  \nsha character(n) . The commit secure hash algorithm (SHA-1) . If NULL, typically points to the most recent commit on the current branch.  \nn integer(1) . How far back to go from current HEAD. Same as the command line  \ngit log -n parameter. For git stash commands, zero-index into the stash list.  \nfile character(1) . The path to a file.  \ntop integer(1) . The commit to consider the \"top\" of the commit stack. Defaults  \nto HEAD~0 or top = 1 .  \nValue  \nNULL ... invisibly.  \nA list containing commit message entries. The ","cbCaijSietMTlKLW","https://ap.wps.com/l/cbCaijSietMTlKLW","pdf",124953,15,"English","# branch\n# checkout\n# commit\n## git\n## lint\n# params\n# pr\n# sha\n# sitrep\n# tag\n# zsh\n# Index","[{\"question\":\"What does gitr provide for R users?\",\"answer\":\"It provides wrappers and a generalized API to run Git commands from within R, with defaults for common workflows.\"},{\"question\":\"How does the package help with branching tasks?\",\"answer\":\"It includes functions to get the default branch, current branch, and local branches, supporting branch-oriented workflows.\"},{\"question\":\"Which Git actions are covered by commit utilities?\",\"answer\":\"It supports commit-message scraping, unstaging, soft/hard resets, uncommitting helpers, and diffing between commits.\"}]","A Lightweight API for Git - Version 0.1.0 | PDF",38,[145,149,153,157],{"page_no":8,"url":146,"width":147,"height":148},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-28/9ec771a7d03602767aeca216fc767808.webp",983,1272,{"page_no":14,"url":150,"width":151,"height":152},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-28/525b960e8e1e5e2b05db6c8aefc13747.webp",982,1270,{"page_no":81,"url":154,"width":155,"height":156},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-28/12e5f848e9c85f42668b21417bea8f95.webp",981,1269,{"page_no":19,"url":158,"width":159,"height":160},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-28/02972e4dfd9a31d8529f541911d3ef9b.webp",980,1268,{"list":162,"token":66},[163,169,175,181,187,193,199,205,211,218],{"doc_id":164,"doc_title":165,"file_type":136,"home_preview_img_url":166,"slug":167,"view_count":8,"category_name":30,"create_tm":168},760087,"GitFourchette - User's Guide - July 2 2026 version 1.9","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230044495428/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110859&Signature=%2FKkZWcVZvLhh0dBPM9SzbfK%2FT3k%3D","gitfourchette-users-guide-july-2-2026-version-19",1795898466,{"doc_id":170,"doc_title":171,"file_type":136,"home_preview_img_url":172,"slug":173,"view_count":81,"category_name":30,"create_tm":174},693053,"Version Control with Git","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230005055485/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110859&Signature=PHJuNa%2BeDFR8zcHgIa%2BqkpVViEk%3D","version-control-with-git",1794246596,{"doc_id":176,"doc_title":177,"file_type":136,"home_preview_img_url":178,"slug":179,"view_count":14,"category_name":30,"create_tm":180},760090,"Git-0 to Pro Reference","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230044495433/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110859&Signature=WnZzd00RJ4462%2FRQK2c2KHbLj5Y%3D","git-0-to-pro-reference",1795898473,{"doc_id":182,"doc_title":183,"file_type":136,"home_preview_img_url":184,"slug":185,"view_count":29,"category_name":30,"create_tm":186},682042,"Git and GitHub Guide - Version control basics - Free study notes","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229999332745/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110859&Signature=Z6mxax9ilH7q8we6xEFAZ5sRSPs%3D","git-and-github-guide-version-control-basics-free-study-notes",1793958652,{"doc_id":188,"doc_title":189,"file_type":136,"home_preview_img_url":190,"slug":191,"view_count":34,"category_name":30,"create_tm":192},682038,"Git Guide - Git collaboration and core commands","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229999332702/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110859&Signature=YvY2bV0IAVezGZmNoUP76LxbAKk%3D","git-guide-git-collaboration-and-core-commands",1793958643,{"doc_id":194,"doc_title":195,"file_type":136,"home_preview_img_url":196,"slug":197,"view_count":24,"category_name":30,"create_tm":198},693048,"Project Management with Git - Basics - Introduction","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230005055460/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110859&Signature=WAn%2FPH1Ya%2Bixq2nF%2FbSSO3UaZKg%3D","project-management-with-git-basics-introduction",1794246583,{"doc_id":200,"doc_title":201,"file_type":136,"home_preview_img_url":202,"slug":203,"view_count":19,"category_name":30,"create_tm":204},686585,"The Git version control system - An introduction to the Git version control system - Felix Gruber","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230001039806/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110859&Signature=L%2B4KTYUQdgT6fIWL0%2FX%2BsIlcjqs%3D","the-git-version-control-system-an-introduction-to-the-git-version-control-system-felix-gruber",1794057221,{"doc_id":206,"doc_title":207,"file_type":136,"home_preview_img_url":208,"slug":209,"view_count":14,"category_name":30,"create_tm":210},725069,"Debugging Energy-efﬁciency Related Field Failures in Mobile Apps","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230028814651/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110859&Signature=7volvi4AbDvlUZiADz%2FpcskKy0k%3D","debugging-energy-efciency-related-field-failures-in-mobile-apps",1795205802,{"doc_id":212,"doc_title":213,"file_type":136,"home_preview_img_url":214,"slug":215,"view_count":216,"category_name":30,"create_tm":217},115355,"Claude AI Bible - The Complete Guide to Mastering Claude, Claude Code, Claude Cowork, MCP, AI Agents, Automation & Advanced Prompting","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229831893665/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110859&Signature=BPlGsUasZSUV01Vf6BCf0ZcLvtQ%3D","claude-ai-bible-the-complete-guide-to-mastering-claude-claude-code-claude-cowork-mcp-ai-agents-automation-advanced-prompting",913,1785472614,{"doc_id":219,"doc_title":220,"file_type":136,"home_preview_img_url":221,"slug":222,"view_count":223,"category_name":30,"create_tm":224},185,"XNX Universal Transmitter Installation Manual (Complete Guide) [Honeywell Official]","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229693710157/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110859&Signature=TNqnSluMI0go%2FLoLihaswrEB4ew%3D","xnx-universal-transmitter-installation-manual",854,1776135954]