[{"data":1,"prerenderedAt":4499},["ShallowReactive",2],{"docs:\u002Fdocs":3},{"id":4,"title":5,"body":6,"description":4489,"extension":4490,"meta":4491,"navigation":4492,"path":4493,"seo":4494,"stem":4497,"__hash__":4498},"docs\u002Fdocs\u002Findex.md","User Guide",{"type":7,"value":8,"toc":4406},"minimark",[9,13,25,40,45,128,131,173,176,181,200,203,206,230,233,283,290,294,310,314,321,324,328,347,350,415,419,435,454,463,467,473,488,491,495,498,501,505,508,546,557,561,601,604,608,618,652,655,659,662,753,765,769,779,810,813,841,849,853,856,926,930,935,942,945,949,952,976,979,983,1024,1035,1038,1076,1083,1087,1100,1104,1107,1130,1142,1145,1149,1152,1227,1241,1245,1248,1361,1364,1368,1373,1453,1460,1464,1467,1541,1548,1551,1555,1562,1580,1583,1587,1590,1665,1668,1672,1679,1694,1697,1701,1704,1707,1710,1714,1720,1731,1734,1738,1741,1749,1752,1770,1773,1811,1814,1859,1870,1874,1877,1909,1912,1935,1945,1949,1952,1958,1961,2029,2032,2071,2075,2080,2086,2089,2135,2138,2142,2177,2180,2183,2410,2414,2420,2423,2449,2452,2502,2505,2518,2522,2527,2606,2615,2657,2669,2673,2678,2681,2694,2697,2739,2742,2748,2751,2759,2786,2840,2843,2846,2851,2906,2912,2917,2921,3074,3077,3081,3086,3100,3129,3134,3169,3175,3181,3230,3233,3239,3290,3307,3310,3315,3321,3382,3395,3399,3404,3409,3420,3423,3433,3438,3480,3483,3519,3527,3530,3535,3566,3569,3574,3612,3618,3621,3626,3666,3672,3680,3736,3742,3746,3753,3761,3797,3803,3844,3853,3857,3862,3865,3870,3914,3917,3921,3924,3944,3947,3958,3961,4004,4013,4016,4088,4091,4094,4103,4122,4133,4142,4145,4201,4204,4208,4218,4222,4227,4231,4251,4255,4258,4279,4282,4286,4289,4323,4326,4330,4338,4345,4352,4356,4359,4363,4374,4378,4395,4399,4402],[10,11,12],"p",{},"This guide answers “how do I …?” for MyBeautifulGit-chan. It is task-oriented: open a\nrepository, make a commit, synchronize, rewrite history, and — most importantly — understand what\nis at risk and how to get back.",[10,14,15,16,20,21,24],{},"For installation, build commands and the feature overview see the repository README. Product\nmilestones are tracked in ",[17,18,19],"code",{},"TODO.md","; security notes live in ",[17,22,23],{},"SECURITY_TODO.md",". Both files sit in\nthe repository root.",[10,26,27,28,31,32,35,36,39],{},"Commands in this guide assume Git 2.30+ and a terminal in the repository root. The app uses the\nsystem Git executable, so the equivalent command is always the source of truth. Replace\n",[17,29,30],{},"\u003Cremote>",", ",[17,33,34],{},"\u003Cbranch>"," and ",[17,37,38],{},"\u003Csha>"," with real values.",[41,42,44],"h2",{"id":43},"contents","Contents",[46,47,48,56,62,68,74,80,86,92,98,104,110,116,122],"ul",{},[49,50,51],"li",{},[52,53,55],"a",{"href":54},"#before-you-start","Before you start",[49,57,58],{},[52,59,61],{"href":60},"#open-clone-or-initialize-a-repository","Open, clone or initialize a repository",[49,63,64],{},[52,65,67],{"href":66},"#stage-and-commit","Stage and commit",[49,69,70],{},[52,71,73],{"href":72},"#branches-and-synchronization","Branches and synchronization",[49,75,76],{},[52,77,79],{"href":78},"#merge-rebase-and-conflicts","Merge, rebase and conflicts",[49,81,82],{},[52,83,85],{"href":84},"#stash-tags-worktrees-and-submodules","Stash, tags, worktrees and submodules",[49,87,88],{},[52,89,91],{"href":90},"#search-reflog-and-bisect","Search, reflog and bisect",[49,93,94],{},[52,95,97],{"href":96},"#undo-and-the-recovery-toolkit","Undo and the recovery toolkit",[49,99,100],{},[52,101,103],{"href":102},"#dangerous-operations-and-rollback","Dangerous operations and rollback",[49,105,106],{},[52,107,109],{"href":108},"#custom-git-host","Custom Git Host",[49,111,112],{},[52,113,115],{"href":114},"#ai-commit-messages","AI commit messages",[49,117,118],{},[52,119,121],{"href":120},"#security-notes","Security notes",[49,123,124],{},[52,125,127],{"href":126},"#troubleshooting","Troubleshooting",[41,129,55],{"id":130},"before-you-start",[46,132,133,149,160,167,170],{},[49,134,135,136,140,141,144,145,148],{},"Open a repository with ",[137,138,139],"strong",{},"Open",", clone one with ",[137,142,143],{},"Clone",", or create one with ",[137,146,147],{},"Init"," on the\nwelcome screen. Drag-and-drop a folder onto the window to open it as a tab.",[49,150,151,152,155,156,159],{},"The main workspace exposes status, history, branches, changes, remotes, tags, worktrees,\nsubmodules and unfinished operations. The ",[137,153,154],{},"HISTORY"," tab contains the operation journal and\nundo\u002Fredo controls; ",[137,157,158],{},"ADVANCED"," contains repository maintenance and escape hatches.",[49,161,162,163,166],{},"The command palette (",[17,164,165],{},"Ctrl\u002FCmd+K",") finds app actions, Git commands, managers and navigation.\nDestructive actions are marked in red.",[49,168,169],{},"The app shows the exact Git command and its consequences before destructive work. Some operations\nask for confirmation; the command console is intentionally unguarded and can run raw Git.",[49,171,172],{},"A Git command may still fail because of hooks, permissions, authentication, an index lock or\nrepository state. Read the stderr panel; it is more useful than a generic error toast.",[41,174,61],{"id":175},"open-clone-or-initialize-a-repository",[177,178,180],"h3",{"id":179},"open-an-existing-repository","Open an existing repository",[182,183,184,190,193],"ol",{},[49,185,186,187,189],{},"Choose ",[137,188,139],{}," and select the repository folder (or drag it onto the window).",[49,191,192],{},"The app discovers the system Git, reads status, refs, remotes and the initial history page.",[49,194,195,196,199],{},"Use ",[137,197,198],{},"Refresh"," if another tool changed the repository while the watcher was inactive.",[10,201,202],{},"Opening another repository creates another tab. Closing a tab returns to its neighbour; the active\ntab and recent folders are restored on the next start when they still exist.",[177,204,143],{"id":205},"clone",[182,207,208,213,227],{},[49,209,186,210,212],{},[137,211,143],{},", enter the URL and a destination folder.",[49,214,215,216,31,219,222,223,226],{},"Choose the clone mode: full clone, ",[17,217,218],{},"--filter=blob:none",[17,220,221],{},"--filter=blob:limit=1m"," or\n",[17,224,225],{},"--filter=tree:0",".",[49,228,229],{},"Watch progress in the clone dialog. A long clone can be cancelled from the same dialog.",[10,231,232],{},"Equivalent full clone:",[234,235,240],"pre",{"className":236,"code":237,"language":238,"meta":239,"style":239},"language-bash shiki shiki-themes git-chan-terminal","git clone -- \u003Curl> \u003Cdestination>\n","bash","",[17,241,242],{"__ignoreMap":239},[243,244,247,251,255,258,262,265,269,272,274,277,280],"span",{"class":245,"line":246},"line",1,[243,248,250],{"class":249},"sttBr","git",[243,252,254],{"class":253},"sLxXd"," clone",[243,256,257],{"class":253}," --",[243,259,261],{"class":260},"sVhn1"," \u003C",[243,263,264],{"class":253},"ur",[243,266,268],{"class":267},"sndI5","l",[243,270,271],{"class":260},">",[243,273,261],{"class":260},[243,275,276],{"class":253},"destinatio",[243,278,279],{"class":267},"n",[243,281,282],{"class":260},">\n",[10,284,285,286,289],{},"The filter is passed as a separate ",[17,287,288],{},"--filter"," argument. A partial clone still needs network access\nlater when missing blobs are requested; it is not an offline copy.",[177,291,293],{"id":292},"initialize","Initialize",[182,295,296,301,307],{},[49,297,186,298,300],{},[137,299,147],{},", select an empty\u002Fnon-repository folder and the initial branch name.",[49,302,303,304,226],{},"The app runs ",[17,305,306],{},"git init -b \u003Cbranch>",[49,308,309],{},"Add a remote and make the first commit before using history-rewrite or pull workflows.",[177,311,313],{"id":312},"if-git-is-missing","If Git is missing",[10,315,316,317,320],{},"The setup screen offers platform-specific installation options and a manual path picker. Run the\napp again after installing Git, or set the Git path in ",[137,318,319],{},"Settings",". The app does not bundle Git.",[41,322,67],{"id":323},"stage-and-commit",[177,325,327],{"id":326},"stage-changes","Stage changes",[182,329,330,333,339],{},[49,331,332],{},"Open the changes view and review the diff.",[49,334,335,336,226],{},"Stage a whole file, a hunk, or selected added\u002Fremoved lines. Partial staging builds a patch from\nthe current index and applies it with ",[17,337,338],{},"git apply --cached",[49,340,341,342,346],{},"Unstage the same selection, or discard it only after reading the warning (see\n",[52,343,345],{"href":344},"#discard-and-file-tracking","Discard",").",[10,348,349],{},"Useful terminal equivalents:",[234,351,353],{"className":236,"code":352,"language":238,"meta":239,"style":239},"git add -- \u003Cpath>\ngit add -p -- \u003Cpath>\ngit restore --staged -- \u003Cpath>\n",[17,354,355,374,394],{"__ignoreMap":239},[243,356,357,359,362,364,366,369,372],{"class":245,"line":246},[243,358,250],{"class":249},[243,360,361],{"class":253}," add",[243,363,257],{"class":253},[243,365,261],{"class":260},[243,367,368],{"class":253},"pat",[243,370,371],{"class":267},"h",[243,373,282],{"class":260},[243,375,377,379,381,384,386,388,390,392],{"class":245,"line":376},2,[243,378,250],{"class":249},[243,380,361],{"class":253},[243,382,383],{"class":253}," -p",[243,385,257],{"class":253},[243,387,261],{"class":260},[243,389,368],{"class":253},[243,391,371],{"class":267},[243,393,282],{"class":260},[243,395,397,399,402,405,407,409,411,413],{"class":245,"line":396},3,[243,398,250],{"class":249},[243,400,401],{"class":253}," restore",[243,403,404],{"class":253}," --staged",[243,406,257],{"class":253},[243,408,261],{"class":260},[243,410,368],{"class":253},[243,412,371],{"class":267},[243,414,282],{"class":260},[177,416,418],{"id":417},"commit","Commit",[182,420,421,424,427],{},[49,422,423],{},"Enter a subject and optional body.",[49,425,426],{},"Review staged files and the command preview.",[49,428,186,429,431,432,226],{},[137,430,418],{},". The command is equivalent to ",[17,433,434],{},"git commit -m \"\u003Cmessage>\"",[10,436,437,438,441,442,445,446,449,450,453],{},"Options include amend, sign-off, signed commits, author\u002Fcommitter overrides, ",[17,439,440],{},"--no-verify",", commit\ntemplates, and ",[17,443,444],{},"--fixup","\u002F",[17,447,448],{},"--squash"," targeting a recent commit. If a hook or Git rejects the commit,\nthe exact command and stderr remain available; ",[137,451,452],{},"RETRY"," reruns the same operation.",[10,455,456,457,460,461,226],{},"The optional ",[137,458,459],{},"AI"," action only fills the message field. It never commits. See\n",[52,462,115],{"href":114},[177,464,466],{"id":465},"amend-the-last-commit","Amend the last commit",[10,468,195,469,472],{},[137,470,471],{},"Amend"," in the commit area. This changes the current commit in place:",[234,474,476],{"className":236,"code":475,"language":238,"meta":239,"style":239},"git commit --amend\n",[17,477,478],{"__ignoreMap":239},[243,479,480,482,485],{"class":245,"line":246},[243,481,250],{"class":249},[243,483,484],{"class":253}," commit",[243,486,487],{"class":253}," --amend\n",[10,489,490],{},"Amending is a history rewrite even though it feels local. The old commit remains recoverable from\nthe app backup ref or reflog until Git expires the objects. Do not amend a commit that other people\nalready pulled without coordinating a force-push.",[177,492,494],{"id":493},"empty-and-failed-commits","Empty and failed commits",[10,496,497],{},"An empty commit is rejected unless the app explicitly offers an empty-commit action. A failed commit\ndoes not intentionally discard the index; verify the staged state, fix the hook\u002Fidentity problem and\nretry. The failed command and stderr remain available.",[41,499,73],{"id":500},"branches-and-synchronization",[177,502,504],{"id":503},"create-and-switch","Create and switch",[10,506,507],{},"Use the branch manager to create a branch from the current commit or another ref and switch to it:",[234,509,511],{"className":236,"code":510,"language":238,"meta":239,"style":239},"git switch -c \u003Cbranch>\ngit switch \u003Cbranch>\n",[17,512,513,532],{"__ignoreMap":239},[243,514,515,517,520,523,525,528,530],{"class":245,"line":246},[243,516,250],{"class":249},[243,518,519],{"class":253}," switch",[243,521,522],{"class":253}," -c",[243,524,261],{"class":260},[243,526,527],{"class":253},"branc",[243,529,371],{"class":267},[243,531,282],{"class":260},[243,533,534,536,538,540,542,544],{"class":245,"line":376},[243,535,250],{"class":249},[243,537,519],{"class":253},[243,539,261],{"class":260},[243,541,527],{"class":253},[243,543,371],{"class":267},[243,545,282],{"class":260},[10,547,548,549,552,553,556],{},"Branch names are validated with ",[17,550,551],{},"check-ref-format"," and passed after ",[17,554,555],{},"--"," where needed. A branch can\nbe renamed, given an upstream, compared with another branch, or deleted.",[177,558,560],{"id":559},"set-or-change-upstream","Set or change upstream",[234,562,564],{"className":236,"code":563,"language":238,"meta":239,"style":239},"git branch --set-upstream-to=\u003Cremote>\u002F\u003Cbranch> \u003Cbranch>\n",[17,565,566],{"__ignoreMap":239},[243,567,568,570,573,576,579,582,584,586,588,591,593,595,597,599],{"class":245,"line":246},[243,569,250],{"class":249},[243,571,572],{"class":253}," branch",[243,574,575],{"class":253}," --set-upstream-to=",[243,577,578],{"class":260},"\u003C",[243,580,581],{"class":253},"remote",[243,583,271],{"class":260},[243,585,445],{"class":253},[243,587,578],{"class":260},[243,589,590],{"class":253},"branch",[243,592,271],{"class":260},[243,594,261],{"class":260},[243,596,527],{"class":253},[243,598,371],{"class":267},[243,600,282],{"class":260},[10,602,603],{},"The status bar and remote preflight show whether the current branch has an upstream and whether\nahead\u002Fbehind counts are available. Without an upstream those counts are shown as not set, not as\nzero.",[177,605,607],{"id":606},"fetch","Fetch",[10,609,610,611,613,614,617],{},"Use the remote manager’s ",[137,612,607],{}," action and choose prune, tag mode, depth and partial-clone filter.\nEvery option maps to a real ",[17,615,616],{},"git fetch"," flag:",[234,619,621],{"className":236,"code":620,"language":238,"meta":239,"style":239},"git fetch --prune --no-tags --depth=1 --filter=blob:none \u003Cremote>\n",[17,622,623],{"__ignoreMap":239},[243,624,625,627,630,633,636,639,642,644,647,650],{"class":245,"line":246},[243,626,250],{"class":249},[243,628,629],{"class":253}," fetch",[243,631,632],{"class":253}," --prune",[243,634,635],{"class":253}," --no-tags",[243,637,638],{"class":253}," --depth=1",[243,640,641],{"class":253}," --filter=blob:none",[243,643,261],{"class":260},[243,645,646],{"class":253},"remot",[243,648,649],{"class":267},"e",[243,651,282],{"class":260},[10,653,654],{},"Fetch updates remote-tracking refs; it does not modify the current branch or worktree.",[177,656,658],{"id":657},"pull","Pull",[10,660,661],{},"Choose the integration mode explicitly each time:",[234,663,665],{"className":236,"code":664,"language":238,"meta":239,"style":239},"git pull --no-rebase \u003Cremote> \u003Cbranch>   # merge\ngit pull --rebase \u003Cremote> \u003Cbranch>      # rebase\ngit pull --ff-only \u003Cremote> \u003Cbranch>     # fast-forward only\n",[17,666,667,697,725],{"__ignoreMap":239},[243,668,669,671,674,677,679,681,683,685,687,689,691,693],{"class":245,"line":246},[243,670,250],{"class":249},[243,672,673],{"class":253}," pull",[243,675,676],{"class":253}," --no-rebase",[243,678,261],{"class":260},[243,680,646],{"class":253},[243,682,649],{"class":267},[243,684,271],{"class":260},[243,686,261],{"class":260},[243,688,527],{"class":253},[243,690,371],{"class":267},[243,692,271],{"class":260},[243,694,696],{"class":695},"sqsZ0","   # merge\n",[243,698,699,701,703,706,708,710,712,714,716,718,720,722],{"class":245,"line":376},[243,700,250],{"class":249},[243,702,673],{"class":253},[243,704,705],{"class":253}," --rebase",[243,707,261],{"class":260},[243,709,646],{"class":253},[243,711,649],{"class":267},[243,713,271],{"class":260},[243,715,261],{"class":260},[243,717,527],{"class":253},[243,719,371],{"class":267},[243,721,271],{"class":260},[243,723,724],{"class":695},"      # rebase\n",[243,726,727,729,731,734,736,738,740,742,744,746,748,750],{"class":245,"line":396},[243,728,250],{"class":249},[243,730,673],{"class":253},[243,732,733],{"class":253}," --ff-only",[243,735,261],{"class":260},[243,737,646],{"class":253},[243,739,649],{"class":267},[243,741,271],{"class":260},[243,743,261],{"class":260},[243,745,527],{"class":253},[243,747,371],{"class":267},[243,749,271],{"class":260},[243,751,752],{"class":695},"     # fast-forward only\n",[10,754,755,756,445,759,762,763,346],{},"Repository ",[17,757,758],{},"pull.rebase",[17,760,761],{},"pull.ff"," configuration does not silently override the chosen mode. If a\npull stops with conflicts, use the operation bar to continue or abort (see\n",[52,764,79],{"href":78},[177,766,768],{"id":767},"push","Push",[10,770,771,772,31,775,778],{},"The push manager covers the current branch, publishing to another branch, upstream setup, tags,\n",[17,773,774],{},"--all",[17,776,777],{},"--mirror",", arbitrary refspecs and remote branch deletion.",[234,780,782],{"className":236,"code":781,"language":238,"meta":239,"style":239},"git push -u \u003Cremote> \u003Cbranch>\n",[17,783,784],{"__ignoreMap":239},[243,785,786,788,791,794,796,798,800,802,804,806,808],{"class":245,"line":246},[243,787,250],{"class":249},[243,789,790],{"class":253}," push",[243,792,793],{"class":253}," -u",[243,795,261],{"class":260},[243,797,646],{"class":253},[243,799,649],{"class":267},[243,801,271],{"class":260},[243,803,261],{"class":260},[243,805,527],{"class":253},[243,807,371],{"class":267},[243,809,282],{"class":260},[10,811,812],{},"Force is never implicit. Choose one of:",[46,814,815,821,833],{},[49,816,817,820],{},[137,818,819],{},"No force"," — normal fast-forward check.",[49,822,823,828,829,832],{},[137,824,825],{},[17,826,827],{},"--force-with-lease"," — overwrite only if the remote still points where the last fetch saw it.\nThis protects against a concurrent update; it does ",[137,830,831],{},"not"," make the push undoable.",[49,834,835,840],{},[137,836,837],{},[17,838,839],{},"--force"," — overwrite the remote unconditionally. Use only when you understand who else may\nhave based work on the old tip.",[10,842,843,844,848],{},"Read ",[52,845,847],{"href":846},"#force-push","Force push"," before using either force mode.",[177,850,852],{"id":851},"compare-branches","Compare branches",[10,854,855],{},"The branch comparison shows ahead\u002Fbehind counts and unique commits. The underlying command is:",[234,857,859],{"className":236,"code":858,"language":238,"meta":239,"style":239},"git rev-list --left-right --count \u003Cbase>...HEAD\ngit log --oneline \u003Cbase>..HEAD\ngit log --oneline HEAD..\u003Cbase>\n",[17,860,861,886,907],{"__ignoreMap":239},[243,862,863,865,868,871,874,876,879,881,883],{"class":245,"line":246},[243,864,250],{"class":249},[243,866,867],{"class":253}," rev-list",[243,869,870],{"class":253}," --left-right",[243,872,873],{"class":253}," --count",[243,875,261],{"class":260},[243,877,878],{"class":253},"bas",[243,880,649],{"class":267},[243,882,271],{"class":260},[243,884,885],{"class":253},"...HEAD\n",[243,887,888,890,893,896,898,900,902,904],{"class":245,"line":376},[243,889,250],{"class":249},[243,891,892],{"class":253}," log",[243,894,895],{"class":253}," --oneline",[243,897,261],{"class":260},[243,899,878],{"class":253},[243,901,649],{"class":267},[243,903,271],{"class":260},[243,905,906],{"class":253},"..HEAD\n",[243,908,909,911,913,915,918,920,922,924],{"class":245,"line":396},[243,910,250],{"class":249},[243,912,892],{"class":253},[243,914,895],{"class":253},[243,916,917],{"class":253}," HEAD..",[243,919,578],{"class":260},[243,921,878],{"class":253},[243,923,649],{"class":267},[243,925,282],{"class":260},[177,927,929],{"id":928},"remotes-and-custom-git-host","Remotes and Custom Git Host",[10,931,932,933,226],{},"The remote manager can add, edit, fetch and remove remotes and set the remote HEAD. For the\nprovider-agnostic identity and preflight panel see ",[52,934,109],{"href":108},[10,936,937,938,346],{},"Removing a remote removes its URL and remote-tracking branches locally; the server repository is\nnot changed. Recover by adding the URL back and fetching (see\n",[52,939,941],{"href":940},"#remote-deletion-and-url-changes","Remote deletion",[41,943,79],{"id":944},"merge-rebase-and-conflicts",[177,946,948],{"id":947},"merge","Merge",[10,950,951],{},"Start a merge from the branch\u002Fremote workflow and review the command and the loss\u002Fconflict preview.\nWhen the merge stops:",[234,953,955],{"className":236,"code":954,"language":238,"meta":239,"style":239},"git merge --continue\ngit merge --abort\n",[17,956,957,967],{"__ignoreMap":239},[243,958,959,961,964],{"class":245,"line":246},[243,960,250],{"class":249},[243,962,963],{"class":253}," merge",[243,965,966],{"class":253}," --continue\n",[243,968,969,971,973],{"class":245,"line":376},[243,970,250],{"class":249},[243,972,963],{"class":253},[243,974,975],{"class":253}," --abort\n",[10,977,978],{},"The app detects an unfinished merge from Git state. It does not invent a skip action where Git\ndoes not support one.",[177,980,982],{"id":981},"interactive-rebase-and-history-rewrite","Interactive rebase and history rewrite",[10,984,985,986,989,990,31,993,996,997,31,1000,31,1003,31,1006,31,1009,31,1012,31,1015,31,1018,35,1021,1023],{},"The rebase editor uses a real ",[17,987,988],{},"git rebase -i --rebase-merges"," plan. It supports ",[17,991,992],{},"pick",[17,994,995],{},"reword",",\n",[17,998,999],{},"edit",[17,1001,1002],{},"squash",[17,1004,1005],{},"fixup",[17,1007,1008],{},"drop",[17,1010,1011],{},"exec",[17,1013,1014],{},"break",[17,1016,1017],{},"label",[17,1019,1020],{},"reset",[17,1022,947],{},". The todo can be\nedited while a rebase is stopped.",[10,1025,1026,1027,1030,1031,1034],{},"Before a rewrite the app creates a backup ref under ",[17,1028,1029],{},"refs\u002Fmybeautifulgit\u002Fbackups\u002F…",". Recent rewrite\noperations have an ",[137,1032,1033],{},"Undo"," action; if local changes appeared since the rewrite, Undo stashes them\nfirst rather than overwriting them.",[10,1036,1037],{},"During a stopped rebase:",[234,1039,1041],{"className":236,"code":1040,"language":238,"meta":239,"style":239},"git rebase --continue\ngit rebase --skip     # only when Git allows skipping the current step\ngit rebase --abort    # restore the pre-rebase branch\n",[17,1042,1043,1052,1064],{"__ignoreMap":239},[243,1044,1045,1047,1050],{"class":245,"line":246},[243,1046,250],{"class":249},[243,1048,1049],{"class":253}," rebase",[243,1051,966],{"class":253},[243,1053,1054,1056,1058,1061],{"class":245,"line":376},[243,1055,250],{"class":249},[243,1057,1049],{"class":253},[243,1059,1060],{"class":253}," --skip",[243,1062,1063],{"class":695},"     # only when Git allows skipping the current step\n",[243,1065,1066,1068,1070,1073],{"class":245,"line":396},[243,1067,250],{"class":249},[243,1069,1049],{"class":253},[243,1071,1072],{"class":253}," --abort",[243,1074,1075],{"class":695},"    # restore the pre-rebase branch\n",[10,1077,1078,1079,1082],{},"After a completed rewrite, recovery is through the app’s ",[137,1080,1081],{},"HISTORY → Undo"," or the backup ref. A\nrewritten branch is only local until you push it; the remote still has the old history until a\nforce-push.",[177,1084,1086],{"id":1085},"conflicts","Conflicts",[10,1088,1089,1090,31,1093,222,1096,1099],{},"Resolve markers in the merge editor or in your editor, stage the resolved files, then continue the\noperation. For a conflicted pull, merge or rebase, use the operation bar’s abort action if you want\nto return to the pre-operation state. Do not delete ",[17,1091,1092],{},".git\u002FMERGE_HEAD",[17,1094,1095],{},".git\u002Frebase-merge",[17,1097,1098],{},".git\u002FCHERRY_PICK_HEAD"," by hand.",[177,1101,1103],{"id":1102},"delete-or-drop-a-commit","Delete or drop a commit",[10,1105,1106],{},"The app offers four explicit routes:",[46,1108,1109,1115,1118,1124],{},[49,1110,1111,1112,1114],{},"interactive ",[17,1113,1008],{}," in a rebase, re-applying descendants;",[49,1116,1117],{},"hard reset to the parent (deletes the tail, descendants are not re-applied);",[49,1119,1120,1123],{},[17,1121,1122],{},"git revert"," (adds a new inverse commit; history is preserved);",[49,1125,1126,1129],{},[17,1127,1128],{},"git filter-repo"," across all local refs (last resort for secrets or paths).",[10,1131,843,1132,1136,1137,1141],{},[52,1133,1135],{"href":1134},"#drop-or-delete-a-commit","Drop or delete a commit"," and\n",[52,1138,1140],{"href":1139},"#filter-repo-remove-a-path-or-secret-from-all-history","filter-repo"," before choosing one.",[41,1143,85],{"id":1144},"stash-tags-worktrees-and-submodules",[177,1146,1148],{"id":1147},"stash","Stash",[10,1150,1151],{},"Create a stash with optional untracked\u002Fignored files, staged-only mode where supported, and partial\nfile selection:",[234,1153,1155],{"className":236,"code":1154,"language":238,"meta":239,"style":239},"git stash push -u -m \"work in progress\" -- \u003Cpath>\ngit stash apply stash@{0}   # keep the stash\ngit stash pop   stash@{0}   # apply and drop on success\ngit stash drop  stash@{0}\n",[17,1156,1157,1184,1199,1214],{"__ignoreMap":239},[243,1158,1159,1161,1164,1166,1168,1171,1174,1176,1178,1180,1182],{"class":245,"line":246},[243,1160,250],{"class":249},[243,1162,1163],{"class":253}," stash",[243,1165,790],{"class":253},[243,1167,793],{"class":253},[243,1169,1170],{"class":253}," -m",[243,1172,1173],{"class":253}," \"work in progress\"",[243,1175,257],{"class":253},[243,1177,261],{"class":260},[243,1179,368],{"class":253},[243,1181,371],{"class":267},[243,1183,282],{"class":260},[243,1185,1186,1188,1190,1193,1196],{"class":245,"line":376},[243,1187,250],{"class":249},[243,1189,1163],{"class":253},[243,1191,1192],{"class":253}," apply",[243,1194,1195],{"class":253}," stash@{0}",[243,1197,1198],{"class":695},"   # keep the stash\n",[243,1200,1201,1203,1205,1208,1211],{"class":245,"line":396},[243,1202,250],{"class":249},[243,1204,1163],{"class":253},[243,1206,1207],{"class":253}," pop",[243,1209,1210],{"class":253},"   stash@{0}",[243,1212,1213],{"class":695},"   # apply and drop on success\n",[243,1215,1217,1219,1221,1224],{"class":245,"line":1216},4,[243,1218,250],{"class":249},[243,1220,1163],{"class":253},[243,1222,1223],{"class":253}," drop",[243,1225,1226],{"class":253},"  stash@{0}\n",[10,1228,1229,1232,1233,1236,1237,226],{},[17,1230,1231],{},"git stash pop"," keeps the stash if applying it conflicts. Prefer ",[137,1234,1235],{},"apply"," when the changes matter;\ndrop only after verifying the result. Recovery after a drop is covered in\n",[52,1238,1240],{"href":1239},"#stash-drop","Stash drop",[177,1242,1244],{"id":1243},"tags","Tags",[10,1246,1247],{},"The tag manager creates lightweight, annotated and signed tags, pushes\u002Fdeletes them locally or on a\nremote, and validates ref names the same way as branches.",[234,1249,1251],{"className":236,"code":1250,"language":238,"meta":239,"style":239},"git tag \u003Ctag> \u003Csha>\ngit tag -a \u003Ctag> -m \"\u003Cmessage>\" \u003Csha>\ngit push \u003Cremote> refs\u002Ftags\u002F\u003Ctag>\ngit push \u003Cremote> --delete refs\u002Ftags\u002F\u003Ctag>\n",[17,1252,1253,1279,1309,1334],{"__ignoreMap":239},[243,1254,1255,1257,1260,1262,1265,1268,1270,1272,1275,1277],{"class":245,"line":246},[243,1256,250],{"class":249},[243,1258,1259],{"class":253}," tag",[243,1261,261],{"class":260},[243,1263,1264],{"class":253},"ta",[243,1266,1267],{"class":267},"g",[243,1269,271],{"class":260},[243,1271,261],{"class":260},[243,1273,1274],{"class":253},"sh",[243,1276,52],{"class":267},[243,1278,282],{"class":260},[243,1280,1281,1283,1285,1288,1290,1292,1294,1296,1298,1301,1303,1305,1307],{"class":245,"line":376},[243,1282,250],{"class":249},[243,1284,1259],{"class":253},[243,1286,1287],{"class":253}," -a",[243,1289,261],{"class":260},[243,1291,1264],{"class":253},[243,1293,1267],{"class":267},[243,1295,271],{"class":260},[243,1297,1170],{"class":253},[243,1299,1300],{"class":253}," \"\u003Cmessage>\"",[243,1302,261],{"class":260},[243,1304,1274],{"class":253},[243,1306,52],{"class":267},[243,1308,282],{"class":260},[243,1310,1311,1313,1315,1317,1319,1321,1323,1326,1328,1330,1332],{"class":245,"line":396},[243,1312,250],{"class":249},[243,1314,790],{"class":253},[243,1316,261],{"class":260},[243,1318,646],{"class":253},[243,1320,649],{"class":267},[243,1322,271],{"class":260},[243,1324,1325],{"class":253}," refs\u002Ftags\u002F",[243,1327,578],{"class":260},[243,1329,1264],{"class":253},[243,1331,1267],{"class":267},[243,1333,282],{"class":260},[243,1335,1336,1338,1340,1342,1344,1346,1348,1351,1353,1355,1357,1359],{"class":245,"line":1216},[243,1337,250],{"class":249},[243,1339,790],{"class":253},[243,1341,261],{"class":260},[243,1343,646],{"class":253},[243,1345,649],{"class":267},[243,1347,271],{"class":260},[243,1349,1350],{"class":253}," --delete",[243,1352,1325],{"class":253},[243,1354,578],{"class":260},[243,1356,1264],{"class":253},[243,1358,1267],{"class":267},[243,1360,282],{"class":260},[10,1362,1363],{},"Tags do not have a reflog. A deleted tag may become unreachable, so record the target commit or keep\na second ref before deleting it.",[177,1365,1367],{"id":1366},"worktrees","Worktrees",[10,1369,1370,1371,226],{},"The worktree manager adds, switches to, locks\u002Funlocks, removes and prunes worktrees. Paths must\nbelong to the worktree list and are passed after ",[17,1372,555],{},[234,1374,1376],{"className":236,"code":1375,"language":238,"meta":239,"style":239},"git worktree list\ngit worktree add \u003Cpath> \u003Cbranch>\ngit worktree remove -- \u003Cpath>\ngit worktree prune --dry-run\ngit worktree prune\n",[17,1377,1378,1388,1412,1431,1443],{"__ignoreMap":239},[243,1379,1380,1382,1385],{"class":245,"line":246},[243,1381,250],{"class":249},[243,1383,1384],{"class":253}," worktree",[243,1386,1387],{"class":253}," list\n",[243,1389,1390,1392,1394,1396,1398,1400,1402,1404,1406,1408,1410],{"class":245,"line":376},[243,1391,250],{"class":249},[243,1393,1384],{"class":253},[243,1395,361],{"class":253},[243,1397,261],{"class":260},[243,1399,368],{"class":253},[243,1401,371],{"class":267},[243,1403,271],{"class":260},[243,1405,261],{"class":260},[243,1407,527],{"class":253},[243,1409,371],{"class":267},[243,1411,282],{"class":260},[243,1413,1414,1416,1418,1421,1423,1425,1427,1429],{"class":245,"line":396},[243,1415,250],{"class":249},[243,1417,1384],{"class":253},[243,1419,1420],{"class":253}," remove",[243,1422,257],{"class":253},[243,1424,261],{"class":260},[243,1426,368],{"class":253},[243,1428,371],{"class":267},[243,1430,282],{"class":260},[243,1432,1433,1435,1437,1440],{"class":245,"line":1216},[243,1434,250],{"class":249},[243,1436,1384],{"class":253},[243,1438,1439],{"class":253}," prune",[243,1441,1442],{"class":253}," --dry-run\n",[243,1444,1446,1448,1450],{"class":245,"line":1445},5,[243,1447,250],{"class":249},[243,1449,1384],{"class":253},[243,1451,1452],{"class":253}," prune\n",[10,1454,1455,1456,226],{},"A worktree is another checkout of the same repository. Removing it does not delete committed\nhistory, but uncommitted files in that worktree are not stored in the main worktree. Commit or stash\nthem before removal. See ",[52,1457,1459],{"href":1458},"#worktree-removal","Worktree removal",[177,1461,1463],{"id":1462},"submodules","Submodules",[10,1465,1466],{},"The submodule manager initializes, updates, syncs, adds and removes submodules; custom configured\nupdates require explicit confirmation.",[234,1468,1470],{"className":236,"code":1469,"language":238,"meta":239,"style":239},"git submodule update --init --recursive\ngit submodule sync --recursive\ngit submodule deinit -- \u003Cpath>\ngit submodule update --init --recursive -- \u003Cpath>\n",[17,1471,1472,1488,1499,1518],{"__ignoreMap":239},[243,1473,1474,1476,1479,1482,1485],{"class":245,"line":246},[243,1475,250],{"class":249},[243,1477,1478],{"class":253}," submodule",[243,1480,1481],{"class":253}," update",[243,1483,1484],{"class":253}," --init",[243,1486,1487],{"class":253}," --recursive\n",[243,1489,1490,1492,1494,1497],{"class":245,"line":376},[243,1491,250],{"class":249},[243,1493,1478],{"class":253},[243,1495,1496],{"class":253}," sync",[243,1498,1487],{"class":253},[243,1500,1501,1503,1505,1508,1510,1512,1514,1516],{"class":245,"line":396},[243,1502,250],{"class":249},[243,1504,1478],{"class":253},[243,1506,1507],{"class":253}," deinit",[243,1509,257],{"class":253},[243,1511,261],{"class":260},[243,1513,368],{"class":253},[243,1515,371],{"class":267},[243,1517,282],{"class":260},[243,1519,1520,1522,1524,1526,1528,1531,1533,1535,1537,1539],{"class":245,"line":1216},[243,1521,250],{"class":249},[243,1523,1478],{"class":253},[243,1525,1481],{"class":253},[243,1527,1484],{"class":253},[243,1529,1530],{"class":253}," --recursive",[243,1532,257],{"class":253},[243,1534,261],{"class":260},[243,1536,368],{"class":253},[243,1538,371],{"class":267},[243,1540,282],{"class":260},[10,1542,1543,1544,226],{},"The superproject records a submodule commit, not the submodule’s uncommitted state. Commit inside\nthe submodule first. Removal is covered in ",[52,1545,1547],{"href":1546},"#submodule-removal","Submodule removal",[41,1549,91],{"id":1550},"search-reflog-and-bisect",[177,1552,1554],{"id":1553},"file-history-blame-and-grep","File history, blame and grep",[10,1556,1557,1558,1561],{},"The ",[137,1559,1560],{},"SEARCH"," view provides:",[46,1563,1564,1571,1574],{},[49,1565,1566,1567,1570],{},"file history with rename following (",[17,1568,1569],{},"git log --follow",");",[49,1572,1573],{},"line-by-line blame with jump-to-commit;",[49,1575,1576,1577,346],{},"repository grep (",[17,1578,1579],{},"git grep",[10,1581,1582],{},"Clicking a result opens the commit inspector; the original path and commit hash remain visible.",[177,1584,1586],{"id":1585},"reflog-browser","Reflog browser",[10,1588,1589],{},"The reflog browser lists HEAD and branch movements and offers restore\u002Freset actions and branch\ncreation from an entry. If the UI action is unavailable or you prefer the terminal:",[234,1591,1593],{"className":236,"code":1592,"language":238,"meta":239,"style":239},"git reflog --date=iso --all\ngit reflog show \u003Cbranch> --date=iso\ngit switch -c rescue \u003Csha>\ngit reset --hard \u003Csha>\n",[17,1594,1595,1608,1628,1647],{"__ignoreMap":239},[243,1596,1597,1599,1602,1605],{"class":245,"line":246},[243,1598,250],{"class":249},[243,1600,1601],{"class":253}," reflog",[243,1603,1604],{"class":253}," --date=iso",[243,1606,1607],{"class":253}," --all\n",[243,1609,1610,1612,1614,1617,1619,1621,1623,1625],{"class":245,"line":376},[243,1611,250],{"class":249},[243,1613,1601],{"class":253},[243,1615,1616],{"class":253}," show",[243,1618,261],{"class":260},[243,1620,527],{"class":253},[243,1622,371],{"class":267},[243,1624,271],{"class":260},[243,1626,1627],{"class":253}," --date=iso\n",[243,1629,1630,1632,1634,1636,1639,1641,1643,1645],{"class":245,"line":396},[243,1631,250],{"class":249},[243,1633,519],{"class":253},[243,1635,522],{"class":253},[243,1637,1638],{"class":253}," rescue",[243,1640,261],{"class":260},[243,1642,1274],{"class":253},[243,1644,52],{"class":267},[243,1646,282],{"class":260},[243,1648,1649,1651,1654,1657,1659,1661,1663],{"class":245,"line":1216},[243,1650,250],{"class":249},[243,1652,1653],{"class":253}," reset",[243,1655,1656],{"class":253}," --hard",[243,1658,261],{"class":260},[243,1660,1274],{"class":253},[243,1662,52],{"class":267},[243,1664,282],{"class":260},[10,1666,1667],{},"Reflog is local. It is not a server backup, and it expires according to Git configuration.",[177,1669,1671],{"id":1670},"bisect","Bisect",[10,1673,1674,1675,1678],{},"The bisect tab marks good\u002Fbad\u002Fskip commits, optionally runs an automated test command with a\ntimeout, and shows ",[17,1676,1677],{},"BISECT_LOG",". To stop and return to the starting point:",[234,1680,1682],{"className":236,"code":1681,"language":238,"meta":239,"style":239},"git bisect reset\n",[17,1683,1684],{"__ignoreMap":239},[243,1685,1686,1688,1691],{"class":245,"line":246},[243,1687,250],{"class":249},[243,1689,1690],{"class":253}," bisect",[243,1692,1693],{"class":253}," reset\n",[10,1695,1696],{},"Use bisect on a clean worktree. An automated command is executed by Git; make sure it is safe to run\non every candidate.",[177,1698,1700],{"id":1699},"command-console","Command console",[10,1702,1703],{},"The console runs raw Git commands without a shell, shows stdout\u002Fstderr and keeps per-repository\nhistory\u002Ffavorites. It bypasses the app’s convenience checks, so it can run destructive commands that\nhave no Undo. Copy the exact command, inspect it, and use the same recovery rules in this guide.",[41,1705,97],{"id":1706},"undo-and-the-recovery-toolkit",[10,1708,1709],{},"There are several different mechanisms. They are not interchangeable.",[177,1711,1713],{"id":1712},"history-tab","HISTORY tab",[10,1715,1716,1717,1719],{},"The application journal records operations with their time, exact command and result. ",[137,1718,1033],{}," is\noffered only for the newest reversible operation:",[46,1721,1722,1725,1728],{},[49,1723,1724],{},"commits undo with a soft reset that returns their changes to the index;",[49,1726,1727],{},"rewrites and resets undo through their backup ref;",[49,1729,1730],{},"checkout restores the previous ref.",[10,1732,1733],{},"Undo verifies the branch and HEAD first. If either moved, it refuses instead of overwriting newer\nwork. Redo repeats the last undone operation under the same checks. Push is deliberately marked as\nnon-reversible: undoing a journal entry cannot undo what another machine already received.",[177,1735,1737],{"id":1736},"backup-refs","Backup refs",[10,1739,1740],{},"Before history rewriting and reset, the app writes a ref such as:",[234,1742,1747],{"className":1743,"code":1745,"language":1746,"meta":239},[1744],"language-text","refs\u002Fmybeautifulgit\u002Fbackups\u002F\u003Ctimestamp>-\u003Cn>-\u003Coperation>-\u003Cshort-tip>\n","text",[17,1748,1745],{"__ignoreMap":239},[10,1750,1751],{},"These refs are hidden from the normal branch list but are real Git refs. List them from the console\nor terminal:",[234,1753,1755],{"className":236,"code":1754,"language":238,"meta":239,"style":239},"git for-each-ref --format='%(refname) %(objectname:short)' refs\u002Fmybeautifulgit\u002Fbackups\n",[17,1756,1757],{"__ignoreMap":239},[243,1758,1759,1761,1764,1767],{"class":245,"line":246},[243,1760,250],{"class":249},[243,1762,1763],{"class":253}," for-each-ref",[243,1765,1766],{"class":253}," --format='%(refname) %(objectname:short)'",[243,1768,1769],{"class":253}," refs\u002Fmybeautifulgit\u002Fbackups\n",[10,1771,1772],{},"Recover a tip without moving your current branch:",[234,1774,1776],{"className":236,"code":1775,"language":238,"meta":239,"style":239},"git branch chan-rescue \u003Cbackup-ref>\ngit show \u003Cbackup-ref>\n",[17,1777,1778,1797],{"__ignoreMap":239},[243,1779,1780,1782,1784,1787,1789,1792,1795],{"class":245,"line":246},[243,1781,250],{"class":249},[243,1783,572],{"class":253},[243,1785,1786],{"class":253}," chan-rescue",[243,1788,261],{"class":260},[243,1790,1791],{"class":253},"backup-re",[243,1793,1794],{"class":267},"f",[243,1796,282],{"class":260},[243,1798,1799,1801,1803,1805,1807,1809],{"class":245,"line":376},[243,1800,250],{"class":249},[243,1802,1616],{"class":253},[243,1804,261],{"class":260},[243,1806,1791],{"class":253},[243,1808,1794],{"class":267},[243,1810,282],{"class":260},[10,1812,1813],{},"Or move the current branch after stashing any local work:",[234,1815,1817],{"className":236,"code":1816,"language":238,"meta":239,"style":239},"git stash push -u -m \"before recovery\"\ngit reset --hard \u003Cbackup-ref>\ngit stash pop\n",[17,1818,1819,1834,1850],{"__ignoreMap":239},[243,1820,1821,1823,1825,1827,1829,1831],{"class":245,"line":246},[243,1822,250],{"class":249},[243,1824,1163],{"class":253},[243,1826,790],{"class":253},[243,1828,793],{"class":253},[243,1830,1170],{"class":253},[243,1832,1833],{"class":253}," \"before recovery\"\n",[243,1835,1836,1838,1840,1842,1844,1846,1848],{"class":245,"line":376},[243,1837,250],{"class":249},[243,1839,1653],{"class":253},[243,1841,1656],{"class":253},[243,1843,261],{"class":260},[243,1845,1791],{"class":253},[243,1847,1794],{"class":267},[243,1849,282],{"class":260},[243,1851,1852,1854,1856],{"class":245,"line":396},[243,1853,250],{"class":249},[243,1855,1163],{"class":253},[243,1857,1858],{"class":253}," pop\n",[10,1860,1861,1862,1865,1866,1869],{},"Backup refs protect ",[137,1863,1864],{},"commits",", not uncommitted file contents. A backup taken before a\n",[17,1867,1868],{},"reset --hard"," does not restore the dirty worktree that was discarded at the same time.",[177,1871,1873],{"id":1872},"reflog","Reflog",[10,1875,1876],{},"Reflog records where HEAD and local branch refs pointed. It is the first place to look after an\naccidental reset, amend, rebase, checkout or branch deletion:",[234,1878,1880],{"className":236,"code":1879,"language":238,"meta":239,"style":239},"git reflog --date=iso --all\ngit reset --hard \u003Cold-sha>\n",[17,1881,1882,1892],{"__ignoreMap":239},[243,1883,1884,1886,1888,1890],{"class":245,"line":246},[243,1885,250],{"class":249},[243,1887,1601],{"class":253},[243,1889,1604],{"class":253},[243,1891,1607],{"class":253},[243,1893,1894,1896,1898,1900,1902,1905,1907],{"class":245,"line":376},[243,1895,250],{"class":249},[243,1897,1653],{"class":253},[243,1899,1656],{"class":253},[243,1901,261],{"class":260},[243,1903,1904],{"class":253},"old-sh",[243,1906,52],{"class":267},[243,1908,282],{"class":260},[10,1910,1911],{},"Prefer creating a rescue branch over resetting immediately:",[234,1913,1915],{"className":236,"code":1914,"language":238,"meta":239,"style":239},"git switch -c chan-rescue \u003Cold-sha>\n",[17,1916,1917],{"__ignoreMap":239},[243,1918,1919,1921,1923,1925,1927,1929,1931,1933],{"class":245,"line":246},[243,1920,250],{"class":249},[243,1922,519],{"class":253},[243,1924,522],{"class":253},[243,1926,1786],{"class":253},[243,1928,261],{"class":260},[243,1930,1904],{"class":253},[243,1932,52],{"class":267},[243,1934,282],{"class":260},[10,1936,1937,1938,31,1941,1944],{},"Reflog entries expire. ",[17,1939,1940],{},"git gc",[17,1942,1943],{},"git prune",", an expired reflog or a fresh clone can remove the\nobjects you need. Do not run maintenance after an accident until you have saved a rescue branch or\nbundle.",[177,1946,1948],{"id":1947},"patch-and-stash-backups","Patch and stash backups",[10,1950,1951],{},"Discard can save a patch or a stash before deleting changes. The patch path is shown in the toast\nand normally looks like:",[234,1953,1956],{"className":1954,"code":1955,"language":1746,"meta":239},[1744],"\u003Crepo>\u002F.git\u002Fchan-backups\u002Fdiscard-\u003Ctimestamp>-\u003Cpath>.patch\n",[17,1957,1955],{"__ignoreMap":239},[10,1959,1960],{},"Check and apply it from the repository root:",[234,1962,1964],{"className":236,"code":1963,"language":238,"meta":239,"style":239},"git apply --check .git\u002Fchan-backups\u002Fdiscard-\u003Ctimestamp>-\u003Cpath>.patch\ngit apply .git\u002Fchan-backups\u002Fdiscard-\u003Ctimestamp>-\u003Cpath>.patch\n",[17,1965,1966,2001],{"__ignoreMap":239},[243,1967,1968,1970,1972,1975,1978,1980,1983,1985,1987,1990,1992,1994,1996,1998],{"class":245,"line":246},[243,1969,250],{"class":249},[243,1971,1192],{"class":253},[243,1973,1974],{"class":253}," --check",[243,1976,1977],{"class":253}," .git\u002Fchan-backups\u002Fdiscard-",[243,1979,578],{"class":260},[243,1981,1982],{"class":253},"timestam",[243,1984,10],{"class":267},[243,1986,271],{"class":260},[243,1988,1989],{"class":253},"-",[243,1991,578],{"class":260},[243,1993,368],{"class":253},[243,1995,371],{"class":267},[243,1997,271],{"class":260},[243,1999,2000],{"class":253},".patch\n",[243,2002,2003,2005,2007,2009,2011,2013,2015,2017,2019,2021,2023,2025,2027],{"class":245,"line":376},[243,2004,250],{"class":249},[243,2006,1192],{"class":253},[243,2008,1977],{"class":253},[243,2010,578],{"class":260},[243,2012,1982],{"class":253},[243,2014,10],{"class":267},[243,2016,271],{"class":260},[243,2018,1989],{"class":253},[243,2020,578],{"class":260},[243,2022,368],{"class":253},[243,2024,371],{"class":267},[243,2026,271],{"class":260},[243,2028,2000],{"class":253},[10,2030,2031],{},"A stash backup is a normal stash entry:",[234,2033,2035],{"className":236,"code":2034,"language":238,"meta":239,"style":239},"git stash list\ngit stash show -p stash@{0}\ngit stash branch chan-discard-recovery stash@{0}\n",[17,2036,2037,2045,2058],{"__ignoreMap":239},[243,2038,2039,2041,2043],{"class":245,"line":246},[243,2040,250],{"class":249},[243,2042,1163],{"class":253},[243,2044,1387],{"class":253},[243,2046,2047,2049,2051,2053,2055],{"class":245,"line":376},[243,2048,250],{"class":249},[243,2050,1163],{"class":253},[243,2052,1616],{"class":253},[243,2054,383],{"class":253},[243,2056,2057],{"class":253}," stash@{0}\n",[243,2059,2060,2062,2064,2066,2069],{"class":245,"line":396},[243,2061,250],{"class":249},[243,2063,1163],{"class":253},[243,2065,572],{"class":253},[243,2067,2068],{"class":253}," chan-discard-recovery",[243,2070,2057],{"class":253},[177,2072,2074],{"id":2073},"bundles","Bundles",[10,2076,2077,2079],{},[17,2078,1140],{}," creates a bundle of all refs under:",[234,2081,2084],{"className":2082,"code":2083,"language":1746,"meta":239},[1744],"\u003Crepo>\u002F.git\u002Fmybeautifulgit\u002Fbackups\u002F*.bundle\n",[17,2085,2083],{"__ignoreMap":239},[10,2087,2088],{},"Verify and inspect it before relying on it:",[234,2090,2092],{"className":236,"code":2091,"language":238,"meta":239,"style":239},"git bundle verify .git\u002Fmybeautifulgit\u002Fbackups\u002F\u003Cbundle>\ngit bundle list-heads .git\u002Fmybeautifulgit\u002Fbackups\u002F\u003Cbundle>\n",[17,2093,2094,2116],{"__ignoreMap":239},[243,2095,2096,2098,2101,2104,2107,2109,2112,2114],{"class":245,"line":246},[243,2097,250],{"class":249},[243,2099,2100],{"class":253}," bundle",[243,2102,2103],{"class":253}," verify",[243,2105,2106],{"class":253}," .git\u002Fmybeautifulgit\u002Fbackups\u002F",[243,2108,578],{"class":260},[243,2110,2111],{"class":253},"bundl",[243,2113,649],{"class":267},[243,2115,282],{"class":260},[243,2117,2118,2120,2122,2125,2127,2129,2131,2133],{"class":245,"line":376},[243,2119,250],{"class":249},[243,2121,2100],{"class":253},[243,2123,2124],{"class":253}," list-heads",[243,2126,2106],{"class":253},[243,2128,578],{"class":260},[243,2130,2111],{"class":253},[243,2132,649],{"class":267},[243,2134,282],{"class":260},[10,2136,2137],{},"A bundle is a portable backup. Copy it somewhere outside the repository before any further rewrite.",[177,2139,2141],{"id":2140},"limits-of-automatic-recovery","Limits of automatic recovery",[46,2143,2144,2147,2150,2160,2163,2174],{},[49,2145,2146],{},"The journal Undo only covers the newest reversible operation and only while branch\u002FHEAD still\nmatch its recorded state.",[49,2148,2149],{},"Reflog and backup refs are local. A force-push changes the server; only a copy on the server,\nanother clone, or an explicit remote backup can restore it.",[49,2151,2152,2155,2156,2159],{},[17,2153,2154],{},"discard"," with ",[137,2157,2158],{},"None"," intentionally has no backup.",[49,2161,2162],{},"A backup ref does not contain uncommitted or untracked files.",[49,2164,2165,31,2167,35,2170,2173],{},[17,2166,1140],{},[17,2168,2169],{},"gc",[17,2171,2172],{},"prune"," can remove old objects regardless of what the UI showed earlier.",[49,2175,2176],{},"Always verify a recovery in a separate rescue branch before force-pushing it anywhere.",[41,2178,103],{"id":2179},"dangerous-operations-and-rollback",[10,2181,2182],{},"The app’s philosophy is “warnings, not nannies”: dangerous operations are exposed with the exact\ncommand, a preview where possible, and a recovery path where one exists. The table is a map, not a\nsubstitute for reading the specific section.",[2184,2185,2186,2205],"table",{},[2187,2188,2189],"thead",{},[2190,2191,2192,2196,2199,2202],"tr",{},[2193,2194,2195],"th",{},"Operation",[2193,2197,2198],{},"What can be lost",[2193,2200,2201],{},"App protection",[2193,2203,2204],{},"Primary recovery",[2206,2207,2208,2225,2242,2259,2274,2289,2306,2328,2343,2358,2377,2394],"tbody",{},[2190,2209,2210,2216,2219,2222],{},[2211,2212,2213],"td",{},[52,2214,2215],{"href":344},"Discard changes",[2211,2217,2218],{},"Worktree edits, untracked files",[2211,2220,2221],{},"Optional patch or stash backup; warning",[2211,2223,2224],{},"Patch\u002Fstash backup, editor local history",[2190,2226,2227,2233,2236,2239],{},[2211,2228,2229],{},[52,2230,2232],{"href":2231},"#reset-soft-mixed-hard-keep","Reset",[2211,2234,2235],{},"Commits, index, worktree files",[2211,2237,2238],{},"Loss preview; backup ref; journal Undo",[2211,2240,2241],{},"Backup ref, reflog, rescue branch",[2190,2243,2244,2250,2253,2256],{},[2211,2245,2246],{},[52,2247,2249],{"href":2248},"#amend-reword-and-rebase","Amend\u002Freword",[2211,2251,2252],{},"Previous commit object",[2211,2254,2255],{},"Backup ref; journal Undo",[2211,2257,2258],{},"Backup ref, reflog",[2190,2260,2261,2266,2269,2272],{},[2211,2262,2263],{},[52,2264,2265],{"href":1134},"Drop\u002Fdelete commit",[2211,2267,2268],{},"Commit and descendants",[2211,2270,2271],{},"Backup ref; journal Undo where supported",[2211,2273,2258],{},[2190,2275,2276,2280,2283,2286],{},[2211,2277,2278],{},[52,2279,847],{"href":846},[2211,2281,2282],{},"Remote branch history",[2211,2284,2285],{},"Explicit force choice; consequences shown",[2211,2287,2288],{},"Another clone\u002Fserver copy; refetch and re-push",[2190,2290,2291,2297,2300,2303],{},[2211,2292,2293],{},[52,2294,2296],{"href":2295},"#branch-and-tag-deletion","Delete branch\u002Ftag",[2211,2298,2299],{},"Ref, upstream config, tag object",[2211,2301,2302],{},"Safe\u002Fforced choice; no blanket undo",[2211,2304,2305],{},"Reflog, tracking ref, known commit\u002Ftag object",[2190,2307,2308,2312,2315,2318],{},[2211,2309,2310],{},[52,2311,1240],{"href":1239},[2211,2313,2314],{},"Stash commit",[2211,2316,2317],{},"No automatic undo",[2211,2319,2320,2323,2324,2327],{},[17,2321,2322],{},"refs\u002Fstash"," reflog, ",[17,2325,2326],{},"fsck"," before gc",[2190,2329,2330,2334,2337,2340],{},[2211,2331,2332],{},[52,2333,1140],{"href":1139},[2211,2335,2336],{},"Rewritten history across refs",[2211,2338,2339],{},"Mandatory dry-run; backup ref; all-ref bundle",[2211,2341,2342],{},"Bundle and backup ref",[2190,2344,2345,2349,2352,2355],{},[2211,2346,2347],{},[52,2348,1459],{"href":1458},[2211,2350,2351],{},"Uncommitted files in that checkout",[2211,2353,2354],{},"Path validation; no file backup",[2211,2356,2357],{},"Re-add from branch; restore from stash\u002Fcommit",[2190,2359,2360,2364,2367,2370],{},[2211,2361,2362],{},[52,2363,1547],{"href":1546},[2211,2365,2366],{},"Submodule checkout and uncommitted state",[2211,2368,2369],{},"Confirmation for custom updates",[2211,2371,2372,2373,2376],{},"Superproject commit, ",[17,2374,2375],{},".gitmodules",", re-init",[2190,2378,2379,2385,2388,2391],{},[2211,2380,2381],{},[52,2382,2384],{"href":2383},"#gc-and-prune","gc\u002Fprune",[2211,2386,2387],{},"Unreachable objects",[2211,2389,2390],{},"Prune dry-run; exact command",[2211,2392,2393],{},"Bundle\u002Fcopy made beforehand; otherwise none",[2190,2395,2396,2401,2404,2407],{},[2211,2397,2398],{},[52,2399,2400],{"href":940},"Remote deletion\u002Fedit",[2211,2402,2403],{},"Remote URL and tracking refs",[2211,2405,2406],{},"Server is untouched; exact command",[2211,2408,2409],{},"Re-add URL and fetch",[177,2411,2413],{"id":2412},"discard-and-file-tracking","Discard and file tracking",[10,2415,2416,2419],{},[137,2417,2418],{},"Where:"," changes view → discard for a file, hunk or line.",[10,2421,2422],{},"Discard is the most immediate destructive action because it edits the worktree, not history. Before\nconfirming, choose:",[46,2424,2425,2434,2444],{},[49,2426,2427,2429,2430,2433],{},[137,2428,1148],{}," — stores tracked changes (and untracked content with ",[17,2431,2432],{},"-u",") in a stash. Partial\u002Fhunk\ndiscard cannot use a stash.",[49,2435,2436,2439,2440,2443],{},[137,2437,2438],{},"Patch"," — writes a patch under ",[17,2441,2442],{},".git\u002Fchan-backups\u002F","; works for files and partial selections.",[49,2445,2446,2448],{},[137,2447,2158],{}," — deletes immediately. The app cannot undo it.",[10,2450,2451],{},"The underlying file operations are:",[234,2453,2455],{"className":236,"code":2454,"language":238,"meta":239,"style":239},"git restore --worktree -- \u003Cpath>   # tracked file\ngit clean -f -- \u003Cpath>             # untracked file\n",[17,2456,2457,2479],{"__ignoreMap":239},[243,2458,2459,2461,2463,2466,2468,2470,2472,2474,2476],{"class":245,"line":246},[243,2460,250],{"class":249},[243,2462,401],{"class":253},[243,2464,2465],{"class":253}," --worktree",[243,2467,257],{"class":253},[243,2469,261],{"class":260},[243,2471,368],{"class":253},[243,2473,371],{"class":267},[243,2475,271],{"class":260},[243,2477,2478],{"class":695},"   # tracked file\n",[243,2480,2481,2483,2486,2489,2491,2493,2495,2497,2499],{"class":245,"line":376},[243,2482,250],{"class":249},[243,2484,2485],{"class":253}," clean",[243,2487,2488],{"class":253}," -f",[243,2490,257],{"class":253},[243,2492,261],{"class":260},[243,2494,368],{"class":253},[243,2496,371],{"class":267},[243,2498,271],{"class":260},[243,2500,2501],{"class":695},"             # untracked file\n",[10,2503,2504],{},"For a partial discard the app restores the file and re-applies the remainder patch, so it refuses\nif the current diff no longer matches.",[10,2506,2507,2510,2511,2514,2515,2517],{},[137,2508,2509],{},"Rollback:"," apply the patch or restore from the stash as shown in\n",[52,2512,1948],{"href":2513},"#patch-and-stash-backups",". If ",[137,2516,2158],{}," was used with no external copy, the\nedit is gone; check your editor’s local history if it has one.",[177,2519,2521],{"id":2520},"reset-soft-mixed-hard-keep","Reset: soft, mixed, hard, keep",[10,2523,2524,2526],{},[137,2525,2418],{}," commit actions → reset, or the branch\u002Fcommit inspector.",[2184,2528,2529,2545],{},[2187,2530,2531],{},[2190,2532,2533,2536,2539,2542],{},[2193,2534,2535],{},"Mode",[2193,2537,2538],{},"Branch",[2193,2540,2541],{},"Index",[2193,2543,2544],{},"Worktree",[2206,2546,2547,2563,2577,2592],{},[2190,2548,2549,2554,2557,2560],{},[2211,2550,2551],{},[17,2552,2553],{},"--soft",[2211,2555,2556],{},"moves",[2211,2558,2559],{},"keeps staged changes",[2211,2561,2562],{},"keeps",[2190,2564,2565,2570,2572,2575],{},[2211,2566,2567],{},[17,2568,2569],{},"--mixed",[2211,2571,2556],{},[2211,2573,2574],{},"resets to target",[2211,2576,2562],{},[2190,2578,2579,2584,2586,2589],{},[2211,2580,2581],{},[17,2582,2583],{},"--hard",[2211,2585,2556],{},[2211,2587,2588],{},"resets",[2211,2590,2591],{},"resets, deleting tracked edits",[2190,2593,2594,2599,2601,2603],{},[2211,2595,2596],{},[17,2597,2598],{},"--keep",[2211,2600,2556],{},[2211,2602,2588],{},[2211,2604,2605],{},"keeps local changes when safe; refuses if it would overwrite them",[10,2607,2608,2609,2611,2612,2614],{},"The app shows a reset preview (commits leaving the branch, unique\u002Funreachable objects, dirty files\nand ",[17,2610,2598],{}," conflicts) and creates a backup ref before the reset. A completed reset is reversible\nthrough ",[137,2613,1081],{}," or the backup ref.",[234,2616,2618],{"className":236,"code":2617,"language":238,"meta":239,"style":239},"git reset --hard \u003Ctarget>\ngit reset --hard \u003Cbackup-ref>   # after checking you are on the intended branch\n",[17,2619,2620,2638],{"__ignoreMap":239},[243,2621,2622,2624,2626,2628,2630,2633,2636],{"class":245,"line":246},[243,2623,250],{"class":249},[243,2625,1653],{"class":253},[243,2627,1656],{"class":253},[243,2629,261],{"class":260},[243,2631,2632],{"class":253},"targe",[243,2634,2635],{"class":267},"t",[243,2637,282],{"class":260},[243,2639,2640,2642,2644,2646,2648,2650,2652,2654],{"class":245,"line":376},[243,2641,250],{"class":249},[243,2643,1653],{"class":253},[243,2645,1656],{"class":253},[243,2647,261],{"class":260},[243,2649,1791],{"class":253},[243,2651,1794],{"class":267},[243,2653,271],{"class":260},[243,2655,2656],{"class":695},"   # after checking you are on the intended branch\n",[10,2658,2659,2661,2662,2665,2666,2668],{},[137,2660,2509],{}," create ",[17,2663,2664],{},"chan-rescue"," from the backup ref first and inspect it. ",[17,2667,1868],{}," also\ndiscards tracked worktree\u002Findex edits; the backup ref alone does not bring those back. Use the\ndiscard patch\u002Fstash if one was created, or recover from your editor\u002Flocal backup.",[177,2670,2672],{"id":2671},"amend-reword-and-rebase","Amend, reword and rebase",[10,2674,2675,2677],{},[137,2676,2418],{}," commit inspector, commit actions, interactive rebase editor.",[10,2679,2680],{},"Amend and reword replace commit objects; interactive rebase can replace a whole range. The app\ncreates a backup ref before the rewrite and offers Undo for recent rewrites. If a rebase is still\nstopped, abort it instead of resetting:",[234,2682,2684],{"className":236,"code":2683,"language":238,"meta":239,"style":239},"git rebase --abort\n",[17,2685,2686],{"__ignoreMap":239},[243,2687,2688,2690,2692],{"class":245,"line":246},[243,2689,250],{"class":249},[243,2691,1049],{"class":253},[243,2693,975],{"class":253},[10,2695,2696],{},"After a completed rewrite:",[234,2698,2699],{"className":236,"code":1816,"language":238,"meta":239,"style":239},[17,2700,2701,2715,2731],{"__ignoreMap":239},[243,2702,2703,2705,2707,2709,2711,2713],{"class":245,"line":246},[243,2704,250],{"class":249},[243,2706,1163],{"class":253},[243,2708,790],{"class":253},[243,2710,793],{"class":253},[243,2712,1170],{"class":253},[243,2714,1833],{"class":253},[243,2716,2717,2719,2721,2723,2725,2727,2729],{"class":245,"line":376},[243,2718,250],{"class":249},[243,2720,1653],{"class":253},[243,2722,1656],{"class":253},[243,2724,261],{"class":260},[243,2726,1791],{"class":253},[243,2728,1794],{"class":267},[243,2730,282],{"class":260},[243,2732,2733,2735,2737],{"class":245,"line":396},[243,2734,250],{"class":249},[243,2736,1163],{"class":253},[243,2738,1858],{"class":253},[10,2740,2741],{},"If the app’s Undo sees that HEAD or the branch moved, it refuses. That is intentional: recover\nmanually into a rescue branch instead of overwriting newer work.",[10,2743,2744,2747],{},[137,2745,2746],{},"Force-push only after verifying the local recovery."," Other people may have fetched the rewritten\nhistory; coordinate before changing the remote.",[177,2749,1135],{"id":2750},"drop-or-delete-a-commit",[10,2752,2753,2755,2756,2758],{},[137,2754,2418],{}," commit inspector → delete, interactive rebase → ",[17,2757,1008],{},", or hard reset to a parent.",[46,2760,2761,2767,2773,2779],{},[49,2762,2763,2766],{},[137,2764,2765],{},"Drop in rebase"," removes the commit and re-applies descendants. Conflicts can stop the rebase;\nresolve them or abort.",[49,2768,2769,2772],{},[137,2770,2771],{},"Hard reset to parent"," cuts off the whole tail. Descendants are not re-applied.",[49,2774,2775,2778],{},[137,2776,2777],{},"Revert"," is the safe public-history option: it adds an inverse commit and does not rewrite.",[49,2780,2781,2785],{},[137,2782,2783],{},[17,2784,1140],{}," removes content from every ref and has a different recovery model.",[234,2787,2789],{"className":236,"code":2788,"language":238,"meta":239,"style":239},"git rebase --abort                    # while stopped\ngit reset --hard \u003Cbackup-ref>         # after completion\ngit branch chan-rescue \u003Cold-sha>      # from reflog\n",[17,2790,2791,2802,2821],{"__ignoreMap":239},[243,2792,2793,2795,2797,2799],{"class":245,"line":246},[243,2794,250],{"class":249},[243,2796,1049],{"class":253},[243,2798,1072],{"class":253},[243,2800,2801],{"class":695},"                    # while stopped\n",[243,2803,2804,2806,2808,2810,2812,2814,2816,2818],{"class":245,"line":376},[243,2805,250],{"class":249},[243,2807,1653],{"class":253},[243,2809,1656],{"class":253},[243,2811,261],{"class":260},[243,2813,1791],{"class":253},[243,2815,1794],{"class":267},[243,2817,271],{"class":260},[243,2819,2820],{"class":695},"         # after completion\n",[243,2822,2823,2825,2827,2829,2831,2833,2835,2837],{"class":245,"line":396},[243,2824,250],{"class":249},[243,2826,572],{"class":253},[243,2828,1786],{"class":253},[243,2830,261],{"class":260},[243,2832,1904],{"class":253},[243,2834,52],{"class":267},[243,2836,271],{"class":260},[243,2838,2839],{"class":695},"      # from reflog\n",[10,2841,2842],{},"The app backup ref and journal Undo cover the rewrite\u002Freset routes. A revert needs no object\nrecovery; undo it with another revert or reset the new commit if it was not pushed.",[177,2844,847],{"id":2845},"force-push",[10,2847,2848,2850],{},[137,2849,2418],{}," push manager → force mode.",[234,2852,2854],{"className":236,"code":2853,"language":238,"meta":239,"style":239},"git push --force-with-lease \u003Cremote> \u003Cbranch>\ngit push --force \u003Cremote> \u003Cbranch>\n",[17,2855,2856,2881],{"__ignoreMap":239},[243,2857,2858,2860,2862,2865,2867,2869,2871,2873,2875,2877,2879],{"class":245,"line":246},[243,2859,250],{"class":249},[243,2861,790],{"class":253},[243,2863,2864],{"class":253}," --force-with-lease",[243,2866,261],{"class":260},[243,2868,646],{"class":253},[243,2870,649],{"class":267},[243,2872,271],{"class":260},[243,2874,261],{"class":260},[243,2876,527],{"class":253},[243,2878,371],{"class":267},[243,2880,282],{"class":260},[243,2882,2883,2885,2887,2890,2892,2894,2896,2898,2900,2902,2904],{"class":245,"line":376},[243,2884,250],{"class":249},[243,2886,790],{"class":253},[243,2888,2889],{"class":253}," --force",[243,2891,261],{"class":260},[243,2893,646],{"class":253},[243,2895,649],{"class":267},[243,2897,271],{"class":260},[243,2899,261],{"class":260},[243,2901,527],{"class":253},[243,2903,371],{"class":267},[243,2905,282],{"class":260},[10,2907,2908,2909,2911],{},"Both replace the remote branch tip. The lease version checks the remote’s last observed value and\nrejects a concurrent update; it is not an undo. The app shows the consequences and never selects\nforce by default. Local backup refs do ",[137,2910,831],{}," back up the server.",[10,2913,2914,2916],{},[17,2915,777],{}," is stronger still: it pushes all local refs and deletes remote refs that do not exist\nlocally. Treat it as a remote-rewrite operation, not as a normal sync, and make a remote backup or\nmirror clone first. Recovery is the same as for a force-push or remote deletion.",[10,2918,2919],{},[137,2920,2509],{},[182,2922,2923,2962,2987,3034],{},[49,2924,2925,2926],{},"Find the old commit in another clone, a server-side backup, or this clone’s remote-tracking\nref\u002Freflog when your Git configuration records one:\n",[234,2927,2929],{"className":236,"code":2928,"language":238,"meta":239,"style":239},"git reflog show refs\u002Fremotes\u002F\u003Cremote>\u002F\u003Cbranch> --date=iso\n",[17,2930,2931],{"__ignoreMap":239},[243,2932,2933,2935,2937,2939,2942,2944,2946,2948,2950,2952,2954,2956,2958,2960],{"class":245,"line":246},[243,2934,250],{"class":249},[243,2936,1601],{"class":253},[243,2938,1616],{"class":253},[243,2940,2941],{"class":253}," refs\u002Fremotes\u002F",[243,2943,578],{"class":260},[243,2945,646],{"class":253},[243,2947,649],{"class":267},[243,2949,271],{"class":260},[243,2951,445],{"class":253},[243,2953,578],{"class":260},[243,2955,527],{"class":253},[243,2957,371],{"class":267},[243,2959,271],{"class":260},[243,2961,1627],{"class":253},[49,2963,2964,2965],{},"Verify the old commit and create a rescue branch:\n",[234,2966,2968],{"className":236,"code":2967,"language":238,"meta":239,"style":239},"git branch chan-remote-rescue \u003Cold-sha>\n",[17,2969,2970],{"__ignoreMap":239},[243,2971,2972,2974,2976,2979,2981,2983,2985],{"class":245,"line":246},[243,2973,250],{"class":249},[243,2975,572],{"class":253},[243,2977,2978],{"class":253}," chan-remote-rescue",[243,2980,261],{"class":260},[243,2982,1904],{"class":253},[243,2984,52],{"class":267},[243,2986,282],{"class":260},[49,2988,2989,2990,3030,3031,3033],{},"Push that exact object back, preferably with a lease if you know the current remote tip:\n",[234,2991,2993],{"className":236,"code":2992,"language":238,"meta":239,"style":239},"git push --force-with-lease \u003Cremote> \u003Cold-sha>:refs\u002Fheads\u002F\u003Cbranch>\n",[17,2994,2995],{"__ignoreMap":239},[243,2996,2997,2999,3001,3003,3005,3007,3009,3011,3013,3015,3017,3019,3022,3024,3026,3028],{"class":245,"line":246},[243,2998,250],{"class":249},[243,3000,790],{"class":253},[243,3002,2864],{"class":253},[243,3004,261],{"class":260},[243,3006,646],{"class":253},[243,3008,649],{"class":267},[243,3010,271],{"class":260},[243,3012,261],{"class":260},[243,3014,1904],{"class":253},[243,3016,52],{"class":267},[243,3018,271],{"class":260},[243,3020,3021],{"class":253},":refs\u002Fheads\u002F",[243,3023,578],{"class":260},[243,3025,527],{"class":253},[243,3027,371],{"class":267},[243,3029,282],{"class":260},"\nIf the lease rejects because the remote moved again, stop and coordinate; do not fall back to\n",[17,3032,839],{}," blindly.",[49,3035,3036,3037],{},"If the remote branch was deleted:\n",[234,3038,3040],{"className":236,"code":3039,"language":238,"meta":239,"style":239},"git push \u003Cremote> \u003Cold-sha>:refs\u002Fheads\u002F\u003Cbranch>\n",[17,3041,3042],{"__ignoreMap":239},[243,3043,3044,3046,3048,3050,3052,3054,3056,3058,3060,3062,3064,3066,3068,3070,3072],{"class":245,"line":246},[243,3045,250],{"class":249},[243,3047,790],{"class":253},[243,3049,261],{"class":260},[243,3051,646],{"class":253},[243,3053,649],{"class":267},[243,3055,271],{"class":260},[243,3057,261],{"class":260},[243,3059,1904],{"class":253},[243,3061,52],{"class":267},[243,3063,271],{"class":260},[243,3065,3021],{"class":253},[243,3067,578],{"class":260},[243,3069,527],{"class":253},[243,3071,371],{"class":267},[243,3073,282],{"class":260},[10,3075,3076],{},"If no clone has the old object, recovery depends on the hosting provider’s backups. Local Git cannot\ninvent it.",[177,3078,3080],{"id":3079},"branch-and-tag-deletion","Branch and tag deletion",[10,3082,3083,3085],{},[137,3084,2418],{}," branch manager and tag manager.",[10,3087,3088,3089,3092,3093,3096,3097,3099],{},"Local branch deletion uses ",[17,3090,3091],{},"git branch -d"," (safe: refuses if unmerged) or ",[17,3094,3095],{},"-D"," (forced). The app\nvalidates the ref and passes it after ",[17,3098,555],{},". Remote branch deletion uses a push deletion:",[234,3101,3103],{"className":236,"code":3102,"language":238,"meta":239,"style":239},"git push \u003Cremote> --delete \u003Cbranch>\n",[17,3104,3105],{"__ignoreMap":239},[243,3106,3107,3109,3111,3113,3115,3117,3119,3121,3123,3125,3127],{"class":245,"line":246},[243,3108,250],{"class":249},[243,3110,790],{"class":253},[243,3112,261],{"class":260},[243,3114,646],{"class":253},[243,3116,649],{"class":267},[243,3118,271],{"class":260},[243,3120,1350],{"class":253},[243,3122,261],{"class":260},[243,3124,527],{"class":253},[243,3126,371],{"class":267},[243,3128,282],{"class":260},[10,3130,3131],{},[137,3132,3133],{},"Local branch rollback:",[234,3135,3137],{"className":236,"code":3136,"language":238,"meta":239,"style":239},"git reflog --all --date=iso\ngit branch chan-rescue \u003Csha>       # from the deleted branch’s last tip\n",[17,3138,3139,3150],{"__ignoreMap":239},[243,3140,3141,3143,3145,3148],{"class":245,"line":246},[243,3142,250],{"class":249},[243,3144,1601],{"class":253},[243,3146,3147],{"class":253}," --all",[243,3149,1627],{"class":253},[243,3151,3152,3154,3156,3158,3160,3162,3164,3166],{"class":245,"line":376},[243,3153,250],{"class":249},[243,3155,572],{"class":253},[243,3157,1786],{"class":253},[243,3159,261],{"class":260},[243,3161,1274],{"class":253},[243,3163,52],{"class":267},[243,3165,271],{"class":260},[243,3167,3168],{"class":695},"       # from the deleted branch’s last tip\n",[10,3170,3171,3172,226],{},"The branch’s upstream configuration is not restored automatically; set it again with\n",[17,3173,3174],{},"git branch --set-upstream-to",[10,3176,3177,3180],{},[137,3178,3179],{},"Remote branch rollback:"," use a local remote-tracking ref or another clone:",[234,3182,3184],{"className":236,"code":3183,"language":238,"meta":239,"style":239},"git push \u003Cremote> refs\u002Fremotes\u002F\u003Cremote>\u002F\u003Cbranch>:refs\u002Fheads\u002F\u003Cbranch>\n",[17,3185,3186],{"__ignoreMap":239},[243,3187,3188,3190,3192,3194,3196,3198,3200,3202,3204,3206,3208,3210,3212,3214,3216,3218,3220,3222,3224,3226,3228],{"class":245,"line":246},[243,3189,250],{"class":249},[243,3191,790],{"class":253},[243,3193,261],{"class":260},[243,3195,646],{"class":253},[243,3197,649],{"class":267},[243,3199,271],{"class":260},[243,3201,2941],{"class":253},[243,3203,578],{"class":260},[243,3205,646],{"class":253},[243,3207,649],{"class":267},[243,3209,271],{"class":260},[243,3211,445],{"class":253},[243,3213,578],{"class":260},[243,3215,527],{"class":253},[243,3217,371],{"class":267},[243,3219,271],{"class":260},[243,3221,3021],{"class":253},[243,3223,578],{"class":260},[243,3225,527],{"class":253},[243,3227,371],{"class":267},[243,3229,282],{"class":260},[10,3231,3232],{},"If the tracking ref was pruned or the remote was removed, use another clone or a provider backup.",[10,3234,3235,3238],{},[137,3236,3237],{},"Tag deletion:"," tags have no reflog. A lightweight tag can be recreated from the commit if it is\nstill reachable:",[234,3240,3242],{"className":236,"code":3241,"language":238,"meta":239,"style":239},"git tag \u003Ctag> \u003Csha>\ngit push \u003Cremote> refs\u002Ftags\u002F\u003Ctag>\n",[17,3243,3244,3266],{"__ignoreMap":239},[243,3245,3246,3248,3250,3252,3254,3256,3258,3260,3262,3264],{"class":245,"line":246},[243,3247,250],{"class":249},[243,3249,1259],{"class":253},[243,3251,261],{"class":260},[243,3253,1264],{"class":253},[243,3255,1267],{"class":267},[243,3257,271],{"class":260},[243,3259,261],{"class":260},[243,3261,1274],{"class":253},[243,3263,52],{"class":267},[243,3265,282],{"class":260},[243,3267,3268,3270,3272,3274,3276,3278,3280,3282,3284,3286,3288],{"class":245,"line":376},[243,3269,250],{"class":249},[243,3271,790],{"class":253},[243,3273,261],{"class":260},[243,3275,646],{"class":253},[243,3277,649],{"class":267},[243,3279,271],{"class":260},[243,3281,1325],{"class":253},[243,3283,578],{"class":260},[243,3285,1264],{"class":253},[243,3287,1267],{"class":267},[243,3289,282],{"class":260},[10,3291,3292,3293,3296,3297,3300,3301,3300,3304,3306],{},"An annotated\u002Fsigned tag also needs its tag object or must be recreated with a new signature. Before\ndeleting a tag you may not be able to identify, run ",[17,3294,3295],{},"git show \u003Ctag>"," and copy the commit\u002Ftag object\nid. If the object is already unreachable, try ",[17,3298,3299],{},"git fsck --unreachable"," ",[137,3302,3303],{},"before",[17,3305,2169],{},"; there is no\nguarantee it is recoverable.",[177,3308,1240],{"id":3309},"stash-drop",[10,3311,3312,3314],{},[137,3313,2418],{}," stash list → drop.",[10,3316,3317,3318,3320],{},"A stash is a commit reachable through ",[17,3319,2322],{},"; dropping the ref removes the easy path to it.",[234,3322,3324],{"className":236,"code":3323,"language":238,"meta":239,"style":239},"git stash list\ngit reflog show refs\u002Fstash --date=iso\ngit stash apply \u003Csha>\ngit stash branch chan-stash-rescue \u003Csha>\n",[17,3325,3326,3334,3347,3363],{"__ignoreMap":239},[243,3327,3328,3330,3332],{"class":245,"line":246},[243,3329,250],{"class":249},[243,3331,1163],{"class":253},[243,3333,1387],{"class":253},[243,3335,3336,3338,3340,3342,3345],{"class":245,"line":376},[243,3337,250],{"class":249},[243,3339,1601],{"class":253},[243,3341,1616],{"class":253},[243,3343,3344],{"class":253}," refs\u002Fstash",[243,3346,1627],{"class":253},[243,3348,3349,3351,3353,3355,3357,3359,3361],{"class":245,"line":396},[243,3350,250],{"class":249},[243,3352,1163],{"class":253},[243,3354,1192],{"class":253},[243,3356,261],{"class":260},[243,3358,1274],{"class":253},[243,3360,52],{"class":267},[243,3362,282],{"class":260},[243,3364,3365,3367,3369,3371,3374,3376,3378,3380],{"class":245,"line":1216},[243,3366,250],{"class":249},[243,3368,1163],{"class":253},[243,3370,572],{"class":253},[243,3372,3373],{"class":253}," chan-stash-rescue",[243,3375,261],{"class":260},[243,3377,1274],{"class":253},[243,3379,52],{"class":267},[243,3381,282],{"class":260},[10,3383,3384,3385,3388,3389,3391,3392,3394],{},"If the reflog entry is gone but the object is still present, ",[17,3386,3387],{},"git fsck --no-reflogs --unreachable","\nmay find it. Do this before ",[17,3390,1940],{}," or ",[17,3393,1943],{},"; after object pruning the stash is gone.",[177,3396,3398],{"id":3397},"filter-repo-remove-a-path-or-secret-from-all-history","filter-repo: remove a path or secret from all history",[10,3400,3401,3403],{},[137,3402,2418],{}," commit inspector → filter-repo \u002F history rewrite.",[10,3405,3406,3408],{},[17,3407,1140],{}," is an optional external tool. It rewrites every local ref, and can invalidate reflogs,\nold objects and remote configuration. The app requires a dry-run preview before a real rewrite, and\ncreates both:",[46,3410,3411,3414],{},[49,3412,3413],{},"a backup ref pointing at the current branch tip;",[49,3415,3416,3417,226],{},"a bundle containing all refs under ",[17,3418,3419],{},".git\u002Fmybeautifulgit\u002Fbackups\u002F",[10,3421,3422],{},"It deliberately disables branch-only Undo for this operation.",[10,3424,3425,3426,3428,3429,3432],{},"Inspect the preview and complete the real rewrite only when the changed refs and paths are expected.\nAfterward, check the remotes and reflog state; ",[17,3427,1140],{}," may remove the ",[17,3430,3431],{},"origin"," remote and\nrewrite refs that other work depended on.",[10,3434,3435,3437],{},[137,3436,2509],{}," the bundle is the all-ref backup:",[234,3439,3441],{"className":236,"code":3440,"language":238,"meta":239,"style":239},"git bundle verify .git\u002Fmybeautifulgit\u002Fbackups\u002F\u003Cbundle>\ngit clone .git\u002Fmybeautifulgit\u002Fbackups\u002F\u003Cbundle> ..\u002Fchan-rescue\n",[17,3442,3443,3461],{"__ignoreMap":239},[243,3444,3445,3447,3449,3451,3453,3455,3457,3459],{"class":245,"line":246},[243,3446,250],{"class":249},[243,3448,2100],{"class":253},[243,3450,2103],{"class":253},[243,3452,2106],{"class":253},[243,3454,578],{"class":260},[243,3456,2111],{"class":253},[243,3458,649],{"class":267},[243,3460,282],{"class":260},[243,3462,3463,3465,3467,3469,3471,3473,3475,3477],{"class":245,"line":376},[243,3464,250],{"class":249},[243,3466,254],{"class":253},[243,3468,2106],{"class":253},[243,3470,578],{"class":260},[243,3472,2111],{"class":253},[243,3474,649],{"class":267},[243,3476,271],{"class":260},[243,3478,3479],{"class":253}," ..\u002Fchan-rescue\n",[10,3481,3482],{},"Or fetch selected refs into rescue namespaces in the current repository:",[234,3484,3486],{"className":236,"code":3485,"language":238,"meta":239,"style":239},"git fetch .git\u002Fmybeautifulgit\u002Fbackups\u002F\u003Cbundle> \\\n  'refs\u002Fheads\u002F*:refs\u002Fheads\u002Frescue\u002F*' \\\n  'refs\u002Ftags\u002F*:refs\u002Ftags\u002Frescue\u002F*'\n",[17,3487,3488,3507,3514],{"__ignoreMap":239},[243,3489,3490,3492,3494,3496,3498,3500,3502,3504],{"class":245,"line":246},[243,3491,250],{"class":249},[243,3493,629],{"class":253},[243,3495,2106],{"class":253},[243,3497,578],{"class":260},[243,3499,2111],{"class":253},[243,3501,649],{"class":267},[243,3503,271],{"class":260},[243,3505,3506],{"class":253}," \\\n",[243,3508,3509,3512],{"class":245,"line":376},[243,3510,3511],{"class":253},"  'refs\u002Fheads\u002F*:refs\u002Fheads\u002Frescue\u002F*'",[243,3513,3506],{"class":253},[243,3515,3516],{"class":245,"line":396},[243,3517,3518],{"class":253},"  'refs\u002Ftags\u002F*:refs\u002Ftags\u002Frescue\u002F*'\n",[10,3520,3521,3522,445,3524,3526],{},"The backup ref alone restores only the recorded branch tip. The bundle can restore every ref it\ncontains. Copy the bundle outside the repository first, and do not run ",[17,3523,2169],{},[17,3525,2172],{}," until recovery is\nverified. Then restore or push the chosen refs deliberately.",[177,3528,1459],{"id":3529},"worktree-removal",[10,3531,3532,3534],{},[137,3533,2418],{}," worktree manager → remove, or prune for stale metadata.",[234,3536,3538],{"className":236,"code":3537,"language":238,"meta":239,"style":239},"git worktree remove -- \u003Cpath>\ngit worktree prune\n",[17,3539,3540,3558],{"__ignoreMap":239},[243,3541,3542,3544,3546,3548,3550,3552,3554,3556],{"class":245,"line":246},[243,3543,250],{"class":249},[243,3545,1384],{"class":253},[243,3547,1420],{"class":253},[243,3549,257],{"class":253},[243,3551,261],{"class":260},[243,3553,368],{"class":253},[243,3555,371],{"class":267},[243,3557,282],{"class":260},[243,3559,3560,3562,3564],{"class":245,"line":376},[243,3561,250],{"class":249},[243,3563,1384],{"class":253},[243,3565,1452],{"class":253},[10,3567,3568],{},"Removing a worktree deletes that checkout; committed history remains in the shared repository, but\nuncommitted files in the removed directory are not saved by the app. Commit or stash them first.",[10,3570,3571,3573],{},[137,3572,2509],{}," recreate a checkout from the branch:",[234,3575,3577],{"className":236,"code":3576,"language":238,"meta":239,"style":239},"git worktree add \u003Cpath> \u003Cbranch>\ngit worktree repair\n",[17,3578,3579,3603],{"__ignoreMap":239},[243,3580,3581,3583,3585,3587,3589,3591,3593,3595,3597,3599,3601],{"class":245,"line":246},[243,3582,250],{"class":249},[243,3584,1384],{"class":253},[243,3586,361],{"class":253},[243,3588,261],{"class":260},[243,3590,368],{"class":253},[243,3592,371],{"class":267},[243,3594,271],{"class":260},[243,3596,261],{"class":260},[243,3598,527],{"class":253},[243,3600,371],{"class":267},[243,3602,282],{"class":260},[243,3604,3605,3607,3609],{"class":245,"line":376},[243,3606,250],{"class":249},[243,3608,1384],{"class":253},[243,3610,3611],{"class":253}," repair\n",[10,3613,3614,3615,3617],{},"If the worktree was removed while dirty and no stash\u002Fpatch exists, recover only from the editor,\nfilesystem backup or a separate copy. ",[17,3616,2172],{}," removes stale administrative entries, not commits.",[177,3619,1547],{"id":3620},"submodule-removal",[10,3622,3623,3625],{},[137,3624,2418],{}," submodule manager → deinit\u002Fremove.",[234,3627,3629],{"className":236,"code":3628,"language":238,"meta":239,"style":239},"git submodule deinit -- \u003Cpath>\ngit rm -- \u003Cpath>\n",[17,3630,3631,3649],{"__ignoreMap":239},[243,3632,3633,3635,3637,3639,3641,3643,3645,3647],{"class":245,"line":246},[243,3634,250],{"class":249},[243,3636,1478],{"class":253},[243,3638,1507],{"class":253},[243,3640,257],{"class":253},[243,3642,261],{"class":260},[243,3644,368],{"class":253},[243,3646,371],{"class":267},[243,3648,282],{"class":260},[243,3650,3651,3653,3656,3658,3660,3662,3664],{"class":245,"line":376},[243,3652,250],{"class":249},[243,3654,3655],{"class":253}," rm",[243,3657,257],{"class":253},[243,3659,261],{"class":260},[243,3661,368],{"class":253},[243,3663,371],{"class":267},[243,3665,282],{"class":260},[10,3667,3668,3669,3671],{},"The superproject records a gitlink; uncommitted changes inside the submodule are separate and can be\nlost. Commit\u002Fpush in the submodule before removing it. Removing a submodule changes ",[17,3670,2375],{},"\nand the index; review the staged diff before committing.",[10,3673,3674,3676,3677,3679],{},[137,3675,2509],{}," restore the superproject commit, ",[17,3678,2375],{}," and gitlink, then initialize:",[234,3681,3683],{"className":236,"code":3682,"language":238,"meta":239,"style":239},"git checkout \u003Csuperproject-commit> -- .gitmodules \u003Cpath>\ngit submodule update --init --recursive -- \u003Cpath>\n",[17,3684,3685,3714],{"__ignoreMap":239},[243,3686,3687,3689,3692,3694,3697,3699,3701,3703,3706,3708,3710,3712],{"class":245,"line":246},[243,3688,250],{"class":249},[243,3690,3691],{"class":253}," checkout",[243,3693,261],{"class":260},[243,3695,3696],{"class":253},"superproject-commi",[243,3698,2635],{"class":267},[243,3700,271],{"class":260},[243,3702,257],{"class":253},[243,3704,3705],{"class":253}," .gitmodules",[243,3707,261],{"class":260},[243,3709,368],{"class":253},[243,3711,371],{"class":267},[243,3713,282],{"class":260},[243,3715,3716,3718,3720,3722,3724,3726,3728,3730,3732,3734],{"class":245,"line":376},[243,3717,250],{"class":249},[243,3719,1478],{"class":253},[243,3721,1481],{"class":253},[243,3723,1484],{"class":253},[243,3725,1530],{"class":253},[243,3727,257],{"class":253},[243,3729,261],{"class":260},[243,3731,368],{"class":253},[243,3733,371],{"class":267},[243,3735,282],{"class":260},[10,3737,3738,3739,3741],{},"If the submodule URL was changed, restore it from ",[17,3740,2375],{},"\u002Fthe superproject commit. A commit\ninside the submodule is recoverable only if it was committed\u002Fpushed or still exists in that\nsubmodule’s reflog.",[177,3743,3745],{"id":3744},"gc-and-prune","gc and prune",[10,3747,3748,3300,3750,3752],{},[137,3749,2418],{},[137,3751,158],{}," → repository maintenance.",[10,3754,3755,3757,3758,3760],{},[17,3756,1940],{}," can expire reflogs and delete unreachable objects; ",[17,3759,1943],{}," removes unreachable objects\nimmediately. The app shows a mandatory dry-run before prune, but a maintenance run is not an undoable\noperation.",[234,3762,3764],{"className":236,"code":3763,"language":238,"meta":239,"style":239},"git gc\ngit gc --aggressive\ngit prune --dry-run\ngit prune\n",[17,3765,3766,3773,3783,3791],{"__ignoreMap":239},[243,3767,3768,3770],{"class":245,"line":246},[243,3769,250],{"class":249},[243,3771,3772],{"class":253}," gc\n",[243,3774,3775,3777,3780],{"class":245,"line":376},[243,3776,250],{"class":249},[243,3778,3779],{"class":253}," gc",[243,3781,3782],{"class":253}," --aggressive\n",[243,3784,3785,3787,3789],{"class":245,"line":396},[243,3786,250],{"class":249},[243,3788,1439],{"class":253},[243,3790,1442],{"class":253},[243,3792,3793,3795],{"class":245,"line":1216},[243,3794,250],{"class":249},[243,3796,1452],{"class":253},[10,3798,3799,3802],{},[137,3800,3801],{},"There is no Git-level rollback after object pruning."," Before maintenance, create a bundle or\nmirror clone if old commits, deleted branches, dropped stashes or pre-filter-repo objects might\nstill matter:",[234,3804,3806],{"className":236,"code":3805,"language":238,"meta":239,"style":239},"git bundle create \u002Fpath\u002Fto\u002Frescue.bundle --all\ngit clone --mirror \u003Crepo> \u002Fpath\u002Fto\u002Frescue.git\n",[17,3807,3808,3822],{"__ignoreMap":239},[243,3809,3810,3812,3814,3817,3820],{"class":245,"line":246},[243,3811,250],{"class":249},[243,3813,2100],{"class":253},[243,3815,3816],{"class":253}," create",[243,3818,3819],{"class":253}," \u002Fpath\u002Fto\u002Frescue.bundle",[243,3821,1607],{"class":253},[243,3823,3824,3826,3828,3831,3833,3836,3839,3841],{"class":245,"line":376},[243,3825,250],{"class":249},[243,3827,254],{"class":253},[243,3829,3830],{"class":253}," --mirror",[243,3832,261],{"class":260},[243,3834,3835],{"class":253},"rep",[243,3837,3838],{"class":267},"o",[243,3840,271],{"class":260},[243,3842,3843],{"class":253}," \u002Fpath\u002Fto\u002Frescue.git\n",[10,3845,3846,3847,35,3850,226],{},"A rescue branch\u002Fref keeps an object reachable; naming a commit in a note is not enough. Do not run\nmaintenance to “clean up” after an accidental reset before checking\n",[52,3848,1873],{"href":3849},"#reflog",[52,3851,1737],{"href":3852},"#backup-refs",[177,3854,3856],{"id":3855},"remote-deletion-and-url-changes","Remote deletion and URL changes",[10,3858,3859,3861],{},[137,3860,2418],{}," remote manager → remove\u002Fedit URL.",[10,3863,3864],{},"Removing a remote deletes its URL and remote-tracking refs locally; the server repository and its\nbranches are untouched. Editing the URL loses the previous value unless you recorded it.",[10,3866,3867,3869],{},[137,3868,2509],{}," add the remote and fetch again:",[234,3871,3873],{"className":236,"code":3872,"language":238,"meta":239,"style":239},"git remote add \u003Cremote> \u003Curl>\ngit fetch \u003Cremote>\n",[17,3874,3875,3900],{"__ignoreMap":239},[243,3876,3877,3879,3882,3884,3886,3888,3890,3892,3894,3896,3898],{"class":245,"line":246},[243,3878,250],{"class":249},[243,3880,3881],{"class":253}," remote",[243,3883,361],{"class":253},[243,3885,261],{"class":260},[243,3887,646],{"class":253},[243,3889,649],{"class":267},[243,3891,271],{"class":260},[243,3893,261],{"class":260},[243,3895,264],{"class":253},[243,3897,268],{"class":267},[243,3899,282],{"class":260},[243,3901,3902,3904,3906,3908,3910,3912],{"class":245,"line":376},[243,3903,250],{"class":249},[243,3905,629],{"class":253},[243,3907,261],{"class":260},[243,3909,646],{"class":253},[243,3911,649],{"class":267},[243,3913,282],{"class":260},[10,3915,3916],{},"Remote-tracking refs are recreated from the server. Local branches are not deleted. If you removed a\nremote that had credentials or a special push URL, re-enter them deliberately; do not paste a token\ninto a shell history or a copied command.",[177,3918,3920],{"id":3919},"command-console-and-hooks","Command console and hooks",[10,3922,3923],{},"The console and hooks are escape hatches, not sandboxes:",[46,3925,3926,3929,3936,3941],{},[49,3927,3928],{},"Raw commands can bypass the app’s previews and validation. A destructive command has only the\nrecovery paths that apply to Git itself.",[49,3930,3931,3932,3935],{},"Hooks are executable code. Enabling a hook or changing a hooks path outside ",[17,3933,3934],{},".git\u002Fhooks"," requires\nconfirmation because a hook can run arbitrary commands with your user permissions.",[49,3937,3938,3940],{},[17,3939,440],{}," skips commit\u002Fpush hooks for one operation; it does not change repository history.",[49,3942,3943],{},"Disable or restore a hook through the hooks manager; keep a copy of a hook you edit. The app does\nnot promise an automatic backup for arbitrary hook files.",[41,3945,109],{"id":3946},"custom-git-host",[10,3948,3949,3951,3952,35,3955,226],{},[137,3950,2418],{}," remote manager → select a remote → ",[137,3953,3954],{},"CUSTOM GIT HOST",[137,3956,3957],{},"PREFLIGHT",[10,3959,3960],{},"Level 1 is provider-agnostic. It reads the remote configuration and shows what can be known without\ncalling a forge API:",[46,3962,3963,3973,3979,3992,4001],{},[49,3964,3965,3966,35,3969,3972],{},"all ",[17,3967,3968],{},"remote.\u003Cname>.url",[17,3970,3971],{},"remote.\u003Cname>.pushurl"," values;",[49,3974,3975,3978],{},[17,3976,3977],{},"url.\u003Cbase>.insteadOf"," rewrites;",[49,3980,3981,3982,31,3985,31,3988,3991],{},"host, port, owner, repository and transport for scp-like, ",[17,3983,3984],{},"ssh:\u002F\u002F",[17,3986,3987],{},"https:\u002F\u002F",[17,3989,3990],{},"git:\u002F\u002F"," and local\npaths;",[49,3993,3994,445,3997,4000],{},[17,3995,3996],{},"CUSTOM",[17,3998,3999],{},"UNKNOWN"," when the host or path is not unambiguous;",[49,4002,4003],{},"branch, upstream, ahead\u002Fbehind and staged\u002Funstaged\u002Funtracked\u002Fconflicted counts in the local\npreflight.",[10,4005,4006,4007,4009,4010,4012],{},"Permissions, pull requests\u002FMRs and checks remain ",[137,4008,3999],{}," at level 1. The app does not guess them\nfrom a folder name, an author email or a remote called ",[17,4011,3431],{},", and it does not call GitHub\u002FGitLab\nAPIs. If a safe compare\u002Fopen link cannot be built, use the displayed URL manually.",[10,4014,4015],{},"Useful inspection commands:",[234,4017,4019],{"className":236,"code":4018,"language":238,"meta":239,"style":239},"git remote -v\ngit config --get-all remote.\u003Cname>.url\ngit config --get-all remote.\u003Cname>.pushurl\ngit config --get-regexp '^url\\..*\\.insteadof$'\n",[17,4020,4021,4030,4055,4076],{"__ignoreMap":239},[243,4022,4023,4025,4027],{"class":245,"line":246},[243,4024,250],{"class":249},[243,4026,3881],{"class":253},[243,4028,4029],{"class":253}," -v\n",[243,4031,4032,4034,4037,4040,4043,4045,4048,4050,4052],{"class":245,"line":376},[243,4033,250],{"class":249},[243,4035,4036],{"class":253}," config",[243,4038,4039],{"class":253}," --get-all",[243,4041,4042],{"class":253}," remote.",[243,4044,578],{"class":260},[243,4046,4047],{"class":253},"nam",[243,4049,649],{"class":267},[243,4051,271],{"class":260},[243,4053,4054],{"class":253},".url\n",[243,4056,4057,4059,4061,4063,4065,4067,4069,4071,4073],{"class":245,"line":396},[243,4058,250],{"class":249},[243,4060,4036],{"class":253},[243,4062,4039],{"class":253},[243,4064,4042],{"class":253},[243,4066,578],{"class":260},[243,4068,4047],{"class":253},[243,4070,649],{"class":267},[243,4072,271],{"class":260},[243,4074,4075],{"class":253},".pushurl\n",[243,4077,4078,4080,4082,4085],{"class":245,"line":1216},[243,4079,250],{"class":249},[243,4081,4036],{"class":253},[243,4083,4084],{"class":253}," --get-regexp",[243,4086,4087],{"class":253}," '^url\\..*\\.insteadof$'\n",[10,4089,4090],{},"Credentials are redacted in the UI. If the URL field is hidden because a credential was embedded in\nit, edit the remote with the full replacement URL or move authentication to a credential helper.\nFor self-hosted forges, the absence of permission\u002FPR data is expected, not a failed API call.",[41,4092,115],{"id":4093},"ai-commit-messages",[10,4095,4096,4098,4099,4102],{},[137,4097,2418],{}," commit message area → ",[137,4100,4101],{},"GENERATE"," (enabled in Settings).",[182,4104,4105,4108,4111,4116],{},[49,4106,4107],{},"Configure an OpenAI-compatible endpoint and model in Settings, and store the API key in the\nseparate encrypted credential store. External endpoints must use HTTPS; local HTTP is an explicit\nmode for Ollama\u002FLM Studio.",[49,4109,4110],{},"Review the endpoint, branch, file count and payload size shown in the confirmation.",[49,4112,4113,4115],{},[137,4114,4101],{}," sends the selected diff and fills the message field only. It never commits.",[49,4117,195,4118,4121],{},[137,4119,4120],{},"REGENERATE"," or restore the previous draft before committing. The final message remains\neditable.",[10,4123,4124,4125,4128,4129,4132],{},"By default only the staged diff is sent. ",[137,4126,4127],{},"WORKTREE"," is a separate explicit action that includes\nunstaged and untracked text files. ",[17,4130,4131],{},".env",", credential\u002Fkey files and binary patches are excluded, and\ncommon secret patterns are redacted, but redaction is best-effort: the configured endpoint receives\nthe remaining diff. Do not send a diff containing a secret to an endpoint you do not trust.",[10,4134,4135,4136,4139,4140,226],{},"The API key is not stored in ",[17,4137,4138],{},"settings.properties",", prompts, logs or the Git journal. See\n",[52,4141,121],{"href":120},[41,4143,121],{"id":4144},"security-notes",[46,4146,4147,4157,4165,4171,4177,4183,4189,4195],{},[49,4148,4149,4152,4153,4156],{},[137,4150,4151],{},"Credentials:"," HTTPS tokens use a temporary credential helper and an AES-GCM-encrypted\n",[17,4154,4155],{},"credentials.bin","; the key is stored beside it with owner-only permissions where supported. This\nprotects accidental plaintext copies, not another process running as the same desktop user.",[49,4158,4159,4164],{},[137,4160,4161],{},[17,4162,4163],{},"credential.helper"," is an arbitrary command and is stored in plaintext. Do not put a token or\npassword in that field; use the encrypted token field.",[49,4166,4167,4170],{},[137,4168,4169],{},"SSH:"," use the system agent\u002FOpenSSH or an explicit key path.",[49,4172,4173,4176],{},[137,4174,4175],{},"URLs and commands:"," credentials are redacted in remote displays, command previews, copied\ncommands and the command history. Never paste a token into a public issue or a shared log.",[49,4178,4179,4182],{},[137,4180,4181],{},"AI:"," opt-in only; the default payload is staged-only; the API key is separate from settings.\nThe endpoint is part of your trust boundary.",[49,4184,4185,4188],{},[137,4186,4187],{},"Hooks and the command console:"," arbitrary code\u002Fcommands can run with your user permissions.\nReview them like you would a shell script.",[49,4190,4191,4194],{},[137,4192,4193],{},"Telemetry:"," the app does not send telemetry.",[49,4196,4197,4200],{},[137,4198,4199],{},"Local data:"," settings, recent repositories, command history and credentials stay on the\nmachine. Deleting repository tabs does not delete the repository or its Git data.",[41,4202,127],{"id":4203},"troubleshooting",[177,4205,4207],{"id":4206},"git-is-not-found","Git is not found",[10,4209,4210,4211,4213,4214,4217],{},"Install Git or set its path in ",[137,4212,319],{},". The app verifies ",[17,4215,4216],{},"git --version","; a stale PATH entry or\nan incomplete command-line-tools shim on macOS is not enough.",[177,4219,4221],{"id":4220},"push-rejected-non-fast-forward","Push rejected \u002F non-fast-forward",[10,4223,4224,4225,226],{},"Fetch first, compare the branches, and integrate the remote changes with merge or rebase. A\nnon-fast-forward is protecting the remote. Force is a separate, explicit decision; read\n",[52,4226,847],{"href":846},[177,4228,4230],{"id":4229},"conflict-or-stopped-operation","Conflict or stopped operation",[10,4232,4233,4234,31,4237,996,4240,31,4243,4246,4247,4250],{},"Use the operation bar to continue or abort. Do not delete Git state files manually. The correct\ncommands are ",[17,4235,4236],{},"git merge --continue\u002F--abort",[17,4238,4239],{},"git rebase --continue\u002F--skip\u002F--abort",[17,4241,4242],{},"git cherry-pick --continue\u002F--abort",[17,4244,4245],{},"git revert --continue\u002F--abort",", or ",[17,4248,4249],{},"git am --continue\u002F--abort","\nwhere supported.",[177,4252,4254],{"id":4253},"detached-head","Detached HEAD",[10,4256,4257],{},"A detached HEAD is not a branch. Create a branch before committing if the work should survive:",[234,4259,4261],{"className":236,"code":4260,"language":238,"meta":239,"style":239},"git switch -c \u003Cbranch>\n",[17,4262,4263],{"__ignoreMap":239},[243,4264,4265,4267,4269,4271,4273,4275,4277],{"class":245,"line":246},[243,4266,250],{"class":249},[243,4268,519],{"class":253},[243,4270,522],{"class":253},[243,4272,261],{"class":260},[243,4274,527],{"class":253},[243,4276,371],{"class":267},[243,4278,282],{"class":260},[10,4280,4281],{},"The status\u002Fpreflight panel reports detached HEAD rather than inventing an upstream.",[177,4283,4285],{"id":4284},"upstream-shows-not-set","Upstream shows “not set”",[10,4287,4288],{},"Set it with the branch manager or:",[234,4290,4291],{"className":236,"code":563,"language":238,"meta":239,"style":239},[17,4292,4293],{"__ignoreMap":239},[243,4294,4295,4297,4299,4301,4303,4305,4307,4309,4311,4313,4315,4317,4319,4321],{"class":245,"line":246},[243,4296,250],{"class":249},[243,4298,572],{"class":253},[243,4300,575],{"class":253},[243,4302,578],{"class":260},[243,4304,581],{"class":253},[243,4306,271],{"class":260},[243,4308,445],{"class":253},[243,4310,578],{"class":260},[243,4312,590],{"class":253},[243,4314,271],{"class":260},[243,4316,261],{"class":260},[243,4318,527],{"class":253},[243,4320,371],{"class":267},[243,4322,282],{"class":260},[10,4324,4325],{},"Until then, ahead\u002Fbehind and pull\u002Fpush defaults may be unavailable; the app shows them as unknown\ninstead of zero.",[177,4327,4329],{"id":4328},"undo-is-unavailable","Undo is unavailable",[10,4331,4332,4333,35,4335,4337],{},"The operation may be older than the newest reversible journal entry, may be a push, or HEAD\u002Fbranch\nmay have moved. Use ",[52,4334,1873],{"href":3849},[52,4336,1737],{"href":3852}," manually. If the branch moved,\ncreate a rescue branch instead of hard-resetting over newer work.",[177,4339,4341,4344],{"id":4340},"indexlock-exists",[17,4342,4343],{},"index.lock"," exists",[10,4346,4347,4348,4351],{},"Another Git process may still be running. Close the app’s operation, wait for it to finish, and check\nfor a live Git process before removing ",[17,4349,4350],{},".git\u002Findex.lock",". Never delete the lock while a Git process\nholds it.",[177,4353,4355],{"id":4354},"large-diff-patch-or-file","Large diff, patch or file",[10,4357,4358],{},"The app has bounded readers and shows a “too large”\u002Ftruncated notice instead of freezing. Use the\ncommand console or terminal with a narrower path\u002Ffilter if you need the complete content.",[177,4360,4362],{"id":4361},"a-file-was-discarded-and-there-is-no-patch","A file was discarded and there is no patch",[10,4364,4365,4366,4369,4370,4373],{},"Check the toast for the patch path, ",[17,4367,4368],{},"git stash list"," for a discard stash, and your editor’s local\nhistory. With ",[137,4371,4372],{},"Discard → None"," and no external copy, there is no Git object to restore.",[177,4375,4377],{"id":4376},"a-commit-branch-or-stash-seems-gone","A commit, branch or stash seems gone",[10,4379,4380,4381,3391,4383,4385,4386,4389,4390,996,4392,4394],{},"Stop before running ",[17,4382,2169],{},[17,4384,2172],{},". Check ",[17,4387,4388],{},"git reflog --all",", backup refs, ",[17,4391,2322],{},[17,4393,3387],{},", bundles and another clone. Then save anything you find into a\nrescue branch or bundle.",[177,4396,4398],{"id":4397},"a-remote-branch-was-overwritten-or-deleted","A remote branch was overwritten or deleted",[10,4400,4401],{},"Local recovery cannot recreate an object that no clone has. Check remote-tracking refs (and their\nreflogs when available) and other clones first, then push the recovered object back. Coordinate with\nanyone who may have fetched the old history; a force-push is not a private operation on a shared\nremote.",[4403,4404,4405],"style",{},"html pre.shiki code .sttBr, html code.shiki .sttBr{--shiki-default:#6CD3FF}html pre.shiki code .sLxXd, html code.shiki .sLxXd{--shiki-default:#FFC857}html pre.shiki code .sVhn1, html code.shiki .sVhn1{--shiki-default:#57A868}html pre.shiki code .sndI5, html code.shiki .sndI5{--shiki-default:#C7D9C1}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html pre.shiki code .sqsZ0, html code.shiki .sqsZ0{--shiki-default:#758B6F;--shiki-default-font-style:italic}",{"title":239,"searchDepth":376,"depth":376,"links":4407},[4408,4409,4410,4416,4422,4431,4437,4443,4449,4457,4472,4473,4474,4475],{"id":43,"depth":376,"text":44},{"id":130,"depth":376,"text":55},{"id":175,"depth":376,"text":61,"children":4411},[4412,4413,4414,4415],{"id":179,"depth":396,"text":180},{"id":205,"depth":396,"text":143},{"id":292,"depth":396,"text":293},{"id":312,"depth":396,"text":313},{"id":323,"depth":376,"text":67,"children":4417},[4418,4419,4420,4421],{"id":326,"depth":396,"text":327},{"id":417,"depth":396,"text":418},{"id":465,"depth":396,"text":466},{"id":493,"depth":396,"text":494},{"id":500,"depth":376,"text":73,"children":4423},[4424,4425,4426,4427,4428,4429,4430],{"id":503,"depth":396,"text":504},{"id":559,"depth":396,"text":560},{"id":606,"depth":396,"text":607},{"id":657,"depth":396,"text":658},{"id":767,"depth":396,"text":768},{"id":851,"depth":396,"text":852},{"id":928,"depth":396,"text":929},{"id":944,"depth":376,"text":79,"children":4432},[4433,4434,4435,4436],{"id":947,"depth":396,"text":948},{"id":981,"depth":396,"text":982},{"id":1085,"depth":396,"text":1086},{"id":1102,"depth":396,"text":1103},{"id":1144,"depth":376,"text":85,"children":4438},[4439,4440,4441,4442],{"id":1147,"depth":396,"text":1148},{"id":1243,"depth":396,"text":1244},{"id":1366,"depth":396,"text":1367},{"id":1462,"depth":396,"text":1463},{"id":1550,"depth":376,"text":91,"children":4444},[4445,4446,4447,4448],{"id":1553,"depth":396,"text":1554},{"id":1585,"depth":396,"text":1586},{"id":1670,"depth":396,"text":1671},{"id":1699,"depth":396,"text":1700},{"id":1706,"depth":376,"text":97,"children":4450},[4451,4452,4453,4454,4455,4456],{"id":1712,"depth":396,"text":1713},{"id":1736,"depth":396,"text":1737},{"id":1872,"depth":396,"text":1873},{"id":1947,"depth":396,"text":1948},{"id":2073,"depth":396,"text":2074},{"id":2140,"depth":396,"text":2141},{"id":2179,"depth":376,"text":103,"children":4458},[4459,4460,4461,4462,4463,4464,4465,4466,4467,4468,4469,4470,4471],{"id":2412,"depth":396,"text":2413},{"id":2520,"depth":396,"text":2521},{"id":2671,"depth":396,"text":2672},{"id":2750,"depth":396,"text":1135},{"id":2845,"depth":396,"text":847},{"id":3079,"depth":396,"text":3080},{"id":3309,"depth":396,"text":1240},{"id":3397,"depth":396,"text":3398},{"id":3529,"depth":396,"text":1459},{"id":3620,"depth":396,"text":1547},{"id":3744,"depth":396,"text":3745},{"id":3855,"depth":396,"text":3856},{"id":3919,"depth":396,"text":3920},{"id":3946,"depth":376,"text":109},{"id":4093,"depth":376,"text":115},{"id":4144,"depth":376,"text":121},{"id":4203,"depth":376,"text":127,"children":4476},[4477,4478,4479,4480,4481,4482,4483,4485,4486,4487,4488],{"id":4206,"depth":396,"text":4207},{"id":4220,"depth":396,"text":4221},{"id":4229,"depth":396,"text":4230},{"id":4253,"depth":396,"text":4254},{"id":4284,"depth":396,"text":4285},{"id":4328,"depth":396,"text":4329},{"id":4340,"depth":396,"text":4484},"index.lock exists",{"id":4354,"depth":396,"text":4355},{"id":4361,"depth":396,"text":4362},{"id":4376,"depth":396,"text":4377},{"id":4397,"depth":396,"text":4398},"[object Object]","md",{},true,"\u002Fdocs",{"title":5,"description":4495},{"Task-oriented workflows for MyBeautifulGit-chan":4496},"open a repository, commit, synchronize, rewrite history and recover from it.","docs\u002Findex","jgZOv6-pxF4-gF745LZXsrwC9fd2lLQySfj4VB2nljc",1795012233533]