import{j as a,D as s,a7 as r,d as l,V as i,m,q as o,_ as p}from"./chunk-449c23a2.js";import{_ as d}from"../entries/src_pages_Home.page.16dc467b.js";import"./chunk-a740628f.js";import"./chunk-cf010ec4.js";import"./chunk-ee54c1e8.js";const g={class:"markdown-body"},h=r(`
Set the global config
git config --global user.name "[name]"
git config --global user.email "[email]"
Create a git repository
git init
Clone an existing git repository
git clone [url]
Commit all tracked changes
git commit -am "[commit message]"
Add new modifications to the last commit
git commit --amend --no-edit
Change last commit message
git commit --amend
Undo most recent commit and keep changes
git reset HEAD~1
Undo the N
most recent commit and keep changes
git reset HEAD~N
Undo most recent commit and get rid of changes
git reset HEAD~1 --hard
Reset branch to remote state
git fetch origin
git reset --hard origin/[branch-name]
Renaming the local master branch to main
git branch -m master main
`,27),_=[h],u={__name:"git-memo.content",setup(c,{expose:e}){return e({frontmatter:{}}),(n,b)=>(a(),s("div",g,_))}},f=l({__name:"git-memo",setup(c){i(t=>({"8cb22b3c":o(e).cardColor}));const e=d();return(t,n)=>(a(),s("div",null,[m(o(u))]))}});const V=p(f,[["__scopeId","data-v-c7dbeca3"]]);export{V as default};