Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

xiaomokk/learn

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

38 Commits

Repository files navigation

git config --global user.name 'xxx'
git config --global user.email 'xxx'
git init
git add <hello.txt> # 把文件修改添加到暂存区
git commit -m 'add a file' # 把暂存区的所有内容提交到当前分支
git status #掌握工作区状态
git diff #查看文件修改内容
git log #查看提交历史
	git log --pretty=oneline
git reset --hard HEAD^ #回退到上一个版本
	HEAD^^(上上版本),HEAD~100(往上100个版本)
	commit id(版本号) 可回到指定版本
git reflog #查看历史命令
工作区(Working Directory)
版本库(Repository) #.git
	stage(index) 暂存区
	master Git自动创建的分支
	HEAD 指针
Greating a new branch is quick and simple.

About

No description, website, or topics provided.

License

Stars

Watchers

Forks

Packages

No packages published

AltStyle によって変換されたページ (->オリジナル) /