1import{o,f as s,a3 as r,d as l,a4 as i,a5 as m,k as p,i as a,D as d}from"./index-e5d7fe1b.js";const g={class:"markdown-body"},h=r(`<h2>Configuration</h2><p>Set the global config</p><pre><code class="language-shell">git config --global user.name "[name]" 2git config --global user.email "[email]" 3</code></pre><h2>Get started</h2><p>Create a git repository</p><pre><code class="language-shell">git init 4</code></pre><p>Clone an existing git repository</p><pre><code class="language-shell">git clone [url] 5</code></pre><h2>Commit</h2><p>Commit all tracked changes</p><pre><code class="language-shell">git commit -am "[commit message]" 6</code></pre><p>Add new modifications to the last commit</p><pre><code class="language-shell">git commit --amend --no-edit 7</code></pre><h2>Iâve made a mistake</h2><p>Change last commit message</p><pre><code class="language-shell">git commit --amend 8</code></pre><p>Undo most recent commit and keep changes</p><pre><code class="language-shell">git reset HEAD~1 9</code></pre><p>Undo the <code>N</code> most recent commit and keep changes</p><pre><code class="language-shell">git reset HEAD~N 10</code></pre><p>Undo most recent commit and get rid of changes</p><pre><code class="language-shell">git reset HEAD~1 --hard 11</code></pre><p>Reset branch to remote state</p><pre><code class="language-shell">git fetch origin 12git reset --hard origin/[branch-name] 13</code></pre><h2>Miscellaneous</h2><p>Renaming the local master branch to main</p><pre><code class="language-shell">git branch -m master main 14</code></pre>`,27),_=[h],u={__name:"git-memo.content",setup(c,{expose:e}){return e({frontmatter:{}}),(n,b)=>(o(),s("div",g,_))}},f=l({__name:"git-memo",setup(c){i(t=>({"8cb22b3c":a(e).cardColor}));const e=m();return(t,n)=>(o(),s("div",null,[p(a(u))]))}});const k=d(f,[["__scopeId","data-v-c7dbeca3"]]);export{k as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.