We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GIT入门ABC
分布式
分支
注意GIT的分布式特性以及与SVN的对比
SVN
clone
svn checkout
git clone https://github.com/chenkan/Demo.git
status
git status
add
git add <filename>
stage/index
commit
git commit <filename> -m 'this is a msg'
push
svn commit
git push
pull
fetch
svn up
拓展阅读
分支控制算是GIT的必杀技,在GIT中分支创建和管理的成本几乎为零
必杀技
大量使用分支进行开发是GIT的特色及优势所在
《ProGit》书曰
《ProGit》
Git中的分支,其实本质上仅仅是个指向commit对象的可变指针
那么,Git又是如何创建一个新的分支的呢?答案很简单,创建一个新的分支指针
git branch -a
git checkout -b myfeature dev
git merge --no-ff myfeature
git checkout -b remote_branch origin/remote_branch
git checkout remote_branch
git push -u origin local_created_branch
git stash
merge
rebase
一些开发模型与方式
http://www.oschina.net/translate/a-successful-git-branching-model
插件 : Egit
Egit
基本上与SVN操作很类似,假设不涉及分支操作,相似度可达95%
95%
托管服务器
github
gitlab
gerrit
命令行工具
zsh
PowerShell + posh-git
《pro git》
http://robbinfan.com/blog/34/git-common-command
http://marklodato.github.io/visual-git-guide/index-zh-cn.html?no-svg
拥抱变化 拥抱GIT 改变工具 改变流程
拥抱变化 拥抱GIT
改变工具 改变流程
The text was updated successfully, but these errors were encountered:
git log --graph --all --decorate
Sorry, something went wrong.
git log --pretty=format:"%Cblue%ad %Creset%ae %Cgreen%s %Creset" --date=short -20
个性化你的Git Log的输出格式
Removing untracked files from your git working copy
git clean -f -x
No branches or pull requests
GIT - The Brief Introduction
GIT入门ABC
What is GIT?
分布式
版本控制系统分支
控制Some Basic Commands
注意GIT的
分布式
特性以及与SVN
的对比clone
=~svn checkout
such asgit clone https://github.com/chenkan/Demo.git
status
is a smart command, such asgit status
add
such asgit add <filename>
(here a concept:stage/index
)commit
such asgit commit <filename> -m 'this is a msg'
push
=~svn commit
such asgit push
pull
/fetch
=~svn up
拓展阅读
git status
详解pull
与fetch
详解Branch Control
分支控制算是GIT的
必杀技
,在GIT中分支创建和管理的成本几乎为零大量使用分支进行开发是GIT的特色及优势所在
What is GIT's Branch?
《ProGit》
书曰Git中的分支,其实本质上仅仅是个指向commit对象的可变指针
那么,Git又是如何创建一个新的分支的呢?答案很简单,创建一个新的分支指针
Some Branch Commands
git branch -a
: 显示所有分支git checkout -b myfeature dev
: 基于dev分支创建一个新分支git merge --no-ff myfeature
: 将完成开发的分支merge回来git checkout -b remote_branch origin/remote_branch
: 切换至指定资源库分支进行工作git checkout remote_branch
: 效果等同于上一句命令git push -u origin local_created_branch
: 将本地创建的分支推送至资源库git stash
: 暂存当前工作内容拓展阅读
merge
与rebase
详解及对比GIT Flow
一些开发模型与方式
http://www.oschina.net/translate/a-successful-git-branching-model
)Demo with Eclipse
插件 :
Egit
基本上与SVN操作很类似,假设不涉及分支操作,相似度可达
95%
GIT Tools
托管服务器
github
gitlab
gerrit
命令行工具
zsh
- Mac/LinuxPowerShell + posh-git
- WindowsReference
《pro git》
前三章 - 基础知识,建议认真阅读http://robbinfan.com/blog/34/git-common-command
- 推荐打印出来,随手可查http://marklodato.github.io/visual-git-guide/index-zh-cn.html?no-svg
THE END
The text was updated successfully, but these errors were encountered: