极简 git 步骤: Revision history

Jump to navigation Jump to search

Diff selection: Mark the radio buttons of the revisions to compare and hit enter or the button at the bottom.
Legend: (cur) = difference with latest revision, (prev) = difference with preceding revision, m = minor edit.

22 July 2026

  • curprev 19:4419:44, 22 July 2026Mwroot talk contribs 1,316 bytes +639 No edit summary
  • curprev 19:3419:34, 22 July 2026Mwroot talk contribs 677 bytes +677 Created page with "== 本地 == # cd sth # git init # git status # 写 .gitignore # git add . # git status # git diff --staged ;; commit 前先检查一下 # git commit -m "本次干了什么,下一步干什么" == 远程 == # git config --global user.name "你的名字" # git config --global user.email "你的邮箱" # git config --global --list # git remote add origin somewhere.git ;; origin 只是个昵称 # git remote -v # git branch -M main # git push -u origin main ;; u 表示 mai..."