Giter VIP home page Giter VIP logo

git-workflow's Introduction

Git Workflow

A set of guidelines and principles to help define your Git workflow

The quick example

$ git clone [email protected]:UKHomeOffice/<repo_name>.git

$ cd <repo_name>

$ git checkout -b <branch_type>/<branch_name> (E.g. feature/add-feature1 or feature/ABC-1)

...Develop the feature/fix the bug...

Add your changes to be committed. The -p (--patch) gives you the opportunity to accept (y) or decline (n).

$ git add -p

Commit staged changes. The -v (--verbose) will open an editor showing an overview of your changes, so you can be super-descriptive when writing your commit message.

$ git commit -v

Fetch and rebase against the remote master branch. -p (--prune) removes remote-tracking references that no longer exist on the remote.

$ git fetch -p

$ git rebase origin/master

Push your committed changes to a remote branch

$ git push origin <branch_type>/<branch_name>
  • Visit your Github repo and select "New pull request", selecting which two branches you intend to merge. This will usually be your feature branch and master. Master will be preselected as the branch to merge into.

  • Follow these guidelines to help describe the nature of your pull request, particularly the use case and the objectives it attempts to achieve.

  • Assign the pull request to a qualified member of your development team for a technical review.

git-workflow's People

Contributors

easternbloc avatar joechapman avatar

Watchers

 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.