Basic Git branch operations: create, update, delete

Description:

Basic Git version control operations regarding branches.

Solution:

Create branch:

>git checkout -b branches/new_branch

Fetch changes:

>git fetch

Update branch/branches:

>git pull

>git pull origin branches/new_branch

Delete branch:

>git branch -D branches/new_branch

About admin

Just another php developer trying to give something back to the community.
This entry was posted in Best practices, Tools, Version control and tagged , , , , , . Bookmark the permalink.

1 Response to Basic Git branch operations: create, update, delete

  1. Pingback: Rename a branch with Git | justbugs

Leave a comment