git review


I choose git for my code manager proxy, the blog before I wrote on zhihu is kinda simple and 不够泛化。

so I am here writing a more concise post hoping it kinda benefit the understanding of my usage of git

git is a version management for code structure like SVN

I do push three importances:

  1. git works as a repo including local and remote, by the way. they definitely different

    git
  2. repo is included in git client

  3. branch is work as a pointer and head is always pointing current node as below


  1. git lens

    基本插件,一般通过git add或者clone的文件才会自动显示commit 记录

  2. git用法

    • hexo to git 是否影响我部署的文件,如果放在不同文件夹中?

      Not, remote repo .git is kind of copy of you remote repo

    • git status

      see the branch add, but note what the repo of you is

    • git pull

    • git fetch

    • git chechout

    • git clone


    • git bash here

    • git init

      this command allow you build a init locally

    • git status

      check the current branch

    • git commit

    • git reflog
      this command allow to return the spec commit, usually doing to get back of your spec version

    • git reset

    • git push

    img

    git 存放在本地

    git lfs 目前暂存文档服务器 (怎么做到的,感觉没有登陆特定的账号,怀疑中文文档有误)

    head always point to your current branch, that is the pointer.

  3. CNAME canonical name

    In computer network, we using canonical name for a series domain getting same IP (server searching)

    eg

    img

  4. cloudflare vs github pages

    It was said that cloudflare offer a better domain management than hexo + github pate.

    well, since they can not be include in the baidu things, I am not willing to go test with it.

Ref:

awesomelinke


some syntax I may maintain later