import { mergeProps, useSSRContext, defineComponent, unref } from 'vue'; import { ssrRenderAttrs, ssrRenderComponent } from 'vue/server-renderer'; import { useThemeVars } from 'naive-ui'; import { _ as _export_sfc } from './chunk-6003391e.js'; import '@vueuse/core'; import 'pinia'; const _sfc_main$1 = { __name: 'git-memo.content', __ssrInlineRender: true, setup(__props, { expose: __expose }) { const frontmatter = {}; __expose({ frontmatter }); return (_ctx, _push, _parent, _attrs) => { _push(`

Configuration

Set the global config

git config --global user.name "[name]"
git config --global user.email "[email]"

Get started

Create a git repository

git init

Clone an existing git repository

git clone [url]

Commit

Commit all tracked changes

git commit -am "[commit message]"

Add new modifications to the last commit

git commit --amend --no-edit

I’ve made a mistake

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]

Miscellaneous

Renaming the local master branch to main

git branch -m master main
`); } } }; const _sfc_setup$1 = _sfc_main$1.setup; _sfc_main$1.setup = (props, ctx) => { const ssrContext = useSSRContext() ;(ssrContext.modules || (ssrContext.modules = new Set())).add("src/tools/git-memo/git-memo.content.md"); return _sfc_setup$1 ? _sfc_setup$1(props, ctx) : undefined }; const Memo = _sfc_main$1; const _sfc_main = /* @__PURE__ */ defineComponent({ __name: "git-memo", __ssrInlineRender: true, setup(__props) { const themeVars = useThemeVars(); return (_ctx, _push, _parent, _attrs) => { const _cssVars = { style: { "--8cb22b3c": unref(themeVars).cardColor } }; _push(``); _push(ssrRenderComponent(unref(Memo), null, null, _parent)); _push(``); }; } }); /* unplugin-vue-components disabled */const gitMemo_vue_vue_type_style_index_0_scoped_c7dbeca3_lang = ''; const _sfc_setup = _sfc_main.setup; _sfc_main.setup = (props, ctx) => { const ssrContext = useSSRContext(); (ssrContext.modules || (ssrContext.modules = /* @__PURE__ */ new Set())).add("src/tools/git-memo/git-memo.vue"); return _sfc_setup ? _sfc_setup(props, ctx) : void 0; }; const gitMemo = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-c7dbeca3"]]); export { gitMemo as default };