fandean / github-demo Goto Github PK
View Code? Open in Web Editor NEWgithub tips
github tips
master <----+
+ |
| +
| pull request
| ^
v |
branch +----+
此流程无需事先进行 Fork, 与之前的自己对自己发起 pull request 的 #1 一样;这样能够简化流程。
只不过这里是整个团队开发都使用这种流程,并且多了几条规则。
多出的几条规则:
流程比较简单,但是必须严格遵守其规则。(因为可能该规则是其他某规则或多条规则实施的前提)
GitHub Flow 剔除复杂规则,旨在使开发者快速开发高品质软件。(指相对于Git-Flow #4)
GitHub Flow – Scott Chacon 讲解了 Git-Flow 而使用 Github Flow的区别
作为一名程序员,不应该每天为部署工作花费精力
官方帮助文档,而且有中文版:
这里介绍的是分支策略 A successful Git branching model 的基础。
正是由于其复杂性,所以常借助 git-flow 等工具来保证开发时不偏离流程。
仔细观察上图,从来没有在 master 和 develop 分支直接进行过修改和提交。
这里假设是在单人开发一个 feature 分支,并且在开发过程中 develop 分支没有更新。
git flow init -d
对仓库进行初始设置;这里-d表示保留默认值。一般结果就是会创建并切换到 develop 分支。git push -u origin develop
将develop推送到远程仓库git pull
,将 develop 分支更新至最新状态git flow feature start <featrureName>
创建并切换到一个特性分支git commit
在特性分支中提交修改。 重复...git push -u origin feature/<featureName>
推送到远程,并尽早发起PRgit checkout develop
,git pull
feature/<featureName>
分支。这里我们不使用 git flow feature finish feature/<featureName>
因为它是在本地进行合并,而我们需要发起PR。另一个分支策略 CakeDC Git Workflow 看起来也不错。
注意这里是 Git Flow 而另外还有一个 GitHub Flow #3
...
的按钮出现,点击该按钮即可进行多种操作:
具体的Pull Requst见: #1
这里保留此问题。
打开文件后,可以看到右上角会显示用于该文件的菜单:
同时查看文件时,点击文件内容左侧的行号,这里假设是第10行,该行会被高亮标记为黄色,同时URL末尾会自动添加#L10
,如果将该为#L10-15
就会标记第10~15行,当然你也可以使用shift键达到此目的。我们在其他地方可以好好利用这些URL。
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.