使用者工具

網站工具


computer:program:git

這是本文件的舊版!


Git

Branch

  • git branch --sort=committerdate

    ASC

  • git branch --sort=-committerdate

    DESC

Rebase

Hooks

pre-commit

Worktree

Tip

Log

Reset

  • git reset origin/master --hard

Rebase

Stash

Branch

Filter Branch

Patch

  • git format-patch --no-prefix HEAD^

Diff

Blame

Subtree

Ignore

git config --global core.excludesfile ~/.gitignore
echo .DS_Store >> ~/.gitignore

Alias

Command

  • git checkout -- .
  • git rm --cached
  • git reflog
  • git shortlog
  • git fsck --no-reflogs
  • git commit --amend –C HEAD
  • git ls-files -o --directory --exclude-standard
git config --global user.name "Firstname Lastname"
git config --global user.email "your_email@youremail.com"
git config --global color.diff auto
git config --global color.status auto
git config --global color.branch auto
git config --global color.log auto
git config --global color.ui true
git config --global core.editor "vim"
git config --global alias.timeline "log --oneline --graph --decorate"
git timeline

資源

Github

Pull Request

Tool

Service

Client

書籍

教學

工具

Hosting

rubygem

npm

grunt

介面

TUI

GUI

computer/program/git.1652494180.txt.gz · 上一次變更: 2022/05/14 02:09 由 wm