「Git」- 安装(Ubuntu、Debian、CentOS、源码编译)

安装的可执行程序

https://git-scm.com/docs

  • git, is the stupid content tracker.
  • git-cvsserver, is a CVS server emulator for Git.
  • gitk, is a graphical Git repository browser (needs Tk-8.6.6).
  • git-receive-pack, is invoked by git send-pack and updates the repository with the information fed from the remote end.
  • git-shell, is a login shell for SSH accounts to provide restricted Git access.
  • git-upload-archive, is invoked by git archive –remote and sends a generated archive to the other end over the git protocol.
  • git-upload-pack, is invoked by git fetch-pack, it discovers what objects the other side is missing, and sends them after packing.

Setup and Config

git
config
help

Getting and Creating Projects

init,创建 Git 空仓库、或者重新初始化已经存储在的仓库;
clone

Basic Snapshotting

add
status
diff
commit,将变更记录到存储库中
reset
rm
mv

Branching and Merging

branch
checkout
merge,将两个或者多个开发历史合并到一起;
mergetool
log
stash
tag
worktree

Sharing and Updating Projects

fetch,从另一个仓库下载 object 和 ref;
pull
push
remote
submodule

Inspection and Comparison

show
log
diff
shortlog
describe

Patching

apply
cherry-pick
diff
rebase
revert

Debugging

bisect
blame
grep

Email

am
apply
format-patch
send-email
request-pull

External Systems

svn
fast-import

Administration

clean
gc
fsck
reflog
filter-branch
instaweb
archive
bundle

Server Admin

daemon
update-server-info

Plumbing Commands

cat-file
check-ignore
checkout-index
commit-tree
count-objects
diff-index
for-each-ref
hash-object
ls-files
merge-base
read-tree
rev-list
rev-parse
show-ref
symbolic-ref
update-index
update-ref
verify-pack
write-tree

Guides

gitattributes
Everyday Git
Glossary
githooks
gitignore
gitmodules
Revisions
Tutorial
Workflows