Top Banner
GIT WORKFLOWS Nguyn Hu Hin – CTO [email protected] All rights reserved © BraveBits JSC
12

GIT Workflows

Apr 15, 2017

Download

Technology

bravebits
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: GIT Workflows

GIT WORKFLOWS Nguyễn Hữu Hiền – CTO

[email protected]

All rights reserved © BraveBits JSC

Page 2: GIT Workflows

GIT WAS CREATED BY LINUS TORVALDS

Git was created by Linus Torvalds in 2005 for development of the Linux kernel, with other kernel developers

contributing to its initial development.

Page 3: GIT Workflows

TEXT

CENTRALIZE WORKFLOW

Page 4: GIT Workflows

DICTATOR WORKFLOWS

Page 5: GIT Workflows

LET’S FORK

Page 6: GIT Workflows

PULL REQUEST

Page 7: GIT Workflows

FORK A PROJECT IN BITBUCKET

Page 8: GIT Workflows

If someone has made changes to the original repository since you forked it, you will see that your forked repository is one or more commits behind the original. If that is the case, to update your repository, click Sync now and then Sync on the popup that appears.

If you want to see the differences between your current repository and the original repository, click the Diff tab to compare changes. If there are multiple commits, you see their cumulative changes by file in this section. Click the Side-by-side diff button to see changes displayed side-by-side. Or press the View file button to view the full file in Bitbucket.

FORK A PROJECT IN BITBUCKET

Page 9: GIT Workflows

CREATE PULL REQUEST

Page 10: GIT Workflows

MERGE PULL REQUEST

▸  (Optional) Update the Commit message with more details.

▸  (For Git repositories only) Select a Merge strategy from the two options:

▸  Merge commit—Keeps all commits from your source branch and makes them part of the destination branch. This option is the same as entering git merge --no-ff in the command line.

▸  Squash—Combines your commits when you merge the source branch into the destination branch. This option is the same as entering git merge --squash in the command line.

▸  (Optional) If you're merging two branches in the same repository, you can select the Close source branch checkbox to remove the branch from the list of repository branches.

▸  Click the Merge button.

Page 11: GIT Workflows

Decline a pull request

Declining a pull request cannot be undone. Once you decline a pull request you will have to open a new pull request request to continue a review.

Declining a pull request has no effect on the branches (source or destination) so the changes in the source branch are still in that source branch.

DECLINE A PULL REQUEST

Page 12: GIT Workflows

Visit us at http://www.bravebits.co/join-us