Skip to content
New issue

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-flow常用操作命令和步骤 #12

Open
fh-combo opened this issue Mar 30, 2019 · 0 comments
Open

git-flow常用操作命令和步骤 #12

fh-combo opened this issue Mar 30, 2019 · 0 comments
Labels

Comments

@fh-combo
Copy link
Owner

常用命令

  • Git-flow 包教不包会

https://juejin.im/entry/5ad9a28d6fb9a07ac76e5e22

  • GIT版本管理:Git Flow模型

https://www.jianshu.com/p/62b4ebe283f3

  • Git 在团队中的最佳实践--如何正确使用Git Flow

https://www.cnblogs.com/cnblogsfans/p/5075073.html

  • git-flow 备忘清单

https://danielkummer.github.io/git-flow-cheatsheet/index.zh_CN.html

  • git-flow 官方api详解

https://github.com/nvie/gitflow/wiki/Command-Line-Arguments

  • Git 工作流规范

https://www.jianshu.com/p/e552abc0138d

  • 阮一峰:Git 使用规范流程

http://www.techug.com/post/git-use-process.html

  • 基礎-git-flow-工作法

https://medium.com/kuma%E8%80%81%E5%B8%AB%E7%9A%84%E8%BB%9F%E9%AB%94%E5%B7%A5%E7%A8%8B%E6%95%99%E5%AE%A4/%E5%9F%BA%E7%A4%8E-git-flow-%E5%B7%A5%E4%BD%9C%E6%B3%95-fa50b1dddc4f

git-flow 帮助

usage: git flow feature [list]
   or: git flow feature start
   or: git flow feature finish
   or: git flow feature publish
   or: git flow feature track
   or: git flow feature diff
   or: git flow feature rebase
   or: git flow feature checkout
   or: git flow feature pull
   or: git flow feature delete

    Manage your feature branches.

    For more specific help type the command followed by --help

git-flow 工作流环境初始化命令

$ git flow init

How to name your supporting branch prefixes?
Feature branches? [feature/]
Bugfix branches? [bugfix/]
Release branches? [release/]
Hotfix branches? [hotfix/]
Support branches? [support/]
Version tag prefix? []
Hooks and filters directory? [F:/casefileproject/.git/hooks]

git-flow,特征分支list查看

$ git flow feature list
No feature branches exist.

You can start a new feature branch:

    git flow feature start <name> [<base>]

新功能开发-创建特征分支命令

git flow feature start <分支名>

举例:
$ git flow feature start wahaha
Switched to a new branch 'feature/wahaha'

Summary of actions:
- A new branch 'feature/wahaha' was created, based on 'temp'
- You are now on branch 'feature/wahaha'

Now, start committing on your feature. When done, use:

     git flow feature finish wahaha

特征分支合并到测试分支,不删除当前特征分支的用法:

git flow feature finish -k my-feature

推送特征分支到远程仓库

  • 写法1:

git flow feature publish <特征分支名>

  • 写法2:

git push origin <feature/特征分支名>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant