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

git命令

wnh5 edited this page Jul 12, 2017 · 5 revisions

git fetch

从git服务器上获取所有分支元数据到本地

git checkout 分支名

从git服务器上获取分支代码

git pull

当前分支代码拉取到本地

git config --global core.autocrlf false

停止自动换行替换(linux下\n,windows下\r\n),避免在不同环境下因为换行符的不同而提交代码

git revert

代码恢复到上次提交时的状态

Clone this wiki locally

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