Giter Site home page Giter Site logo

gitflow4code's Introduction

gitflow4code

gitflow-avh implementation for Visual Studio Code

This extension adds support for the feature branching strategy described here in Vincent Driessen's branching model. The implementation used by this extension is similar to the functionality offered by git-flow (AVH Edition).

What's included

  • Initialize a repository with default or custom values for branch naming (i.e. 'develop', 'master', 'feature/', etc)
  • Start/Finish Feature branches from develop, or from other feature branch bases
  • Start/Finish Release branches
  • Start/Finish Hotfix branches
  • Get the status of a git repository

Dependencies

  • git (if you have installed VS Code, this should also already exist on your machine)

Getting Started

Accessing gitflow4code commands

From the Command Pallette, type in GitFlow and choose the GitFlow: Run GitFlow commands option GitFlow Command

Alternately, you can use the shortcut keys listed below to display the gitflow4code commands

Shortcuts to Available Commands
  • โŒฅโŒ˜/ on Mac
  • Ctrl+Alt+/ on Windows

Available GitFlow Commands

Initalize

Choose the Initialize Repository command from the list of available gitflow4code commands. Available GitFlow Commands

Initialize with default settings

Choose to Initialize with default (i.e. master, develop, feature/, release/, & hotfix/) Initialize with default

Initialize with custom configuration settings

Choose to Initialize with custom values and then specify the values requested Initialize master Initialize develop Initialize feature Initialize release Initialize hotfix

These settings are stored and can be edited at any time by re-running the above commands or by editing in the Settings file. custom settings

Features

Start Feature

Choose the Features command from the list of available gitflow4code commands Features Command

If creating a feature branch off of your development branch, choose Start Feature from <develop> (where develop is the name of whatever you chose to initialize your development branch) Start Feature

-- or --

If creating a feature branch off another existing feature branch, choose Start Feature from another feature branch Start Feature from another feature

Then supply the name of your feature branch, and the tool will prefix it with whatever you chose to be the name of your feature branches Feature Name

Finish Feature

When finished with your feature, choose the Features command from the list of available gitflow4code commands and then choose to Finish Feature Finish Feature

Releases

Start Release

Choose the Releases command from the list of available gitflow4code commands Releases Command

Choose Start Release Start Release

Then supply the name of your release branch, and the tool will prefix it with whatever you chose to be the name of your release branches Release Name

Finish Release

When finished with your release, choose the Releases command from the list of available gitflow4code commands and then choose to Finish Release Finish Release

Then supply the name of the Tag for this release Tag Release

Hotfixes

Start Hotfix

Choose the Hotfixes command from the list of available gitflow4code commands Hotfixes Command

Choose Start Hotfix Start Hotfix

Then supply the name of your hotfix branch, and the tool will prefix it with whatever you chose to be the name of your hotfix branches Hotfix Name

Finish Hotfix

When finished with your hotfix, choose the Hotfixes command from the list of available gitflow4code commands and then choose to Finish Hotfix Finish Hotfix

Then supply the name of the Tag for this hotfix Tag Hotfix

Git Status

Choosing this from the gitflow4code commands list will display the current status of the local git repository (same as if running git status on the command line) and displays it in the OUTPUT pane Git Status Git Status Result

Extra

gitflow4code roadmap

  • Redesign command menu
  • Add shortcut functionality to finish current feature/release/hotfix via a status bar button
  • Ability to configure whether or not branches are local and/or remote tracking branches are deleted after finishing

Help Out?

This project is under constant development. Feedback and suggestions are very welcome and I encourage you to use the Issues list on Github to provide that feedback.

Contributing

Fork the repository and then run:

$ git clone -b master [email protected]:<username>/gitflow4code.git
cd gitflow4code

The -b master switch has to be added since the fork operation automatically clones the develop branch of the repository and cloning it results in a local repository with just a develop branch.

After that, initialize the local gitflow4code repository with gitflow4code itself (see Getting Started above). Then create a feature branch, do your work and commit your changes publishing your feature branch.

When done, open a pull request to your feature branch.

gitflow4code's People

Contributors

shaggy13spe avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.