Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletter Hub
Free Learning
Arrow right icon
timer SALE ENDS IN
0 Days
:
00 Hours
:
00 Minutes
:
00 Seconds
Arrow up icon
GO TO TOP
DevOps for Salesforce

You're reading from   DevOps for Salesforce Build, test, and streamline data pipelines to simplify development in Salesforce

Arrow left icon
Product type Paperback
Published in Sep 2018
Publisher
ISBN-13 9781788833349
Length 220 pages
Edition 1st Edition
Concepts
Arrow right icon
Authors (3):
Arrow left icon
 Dive Dive
Author Profile Icon Dive
Dive
 Aphale Aphale
Author Profile Icon Aphale
Aphale
 Gornalli Gornalli
Author Profile Icon Gornalli
Gornalli
Arrow right icon
View More author details
Toc

Table of Contents (14) Chapters Close

Title Page
Packt Upsell
Contributors
Preface
1. Salesforce Development and Delivery Process FREE CHAPTER 2. Applying DevOps to Salesforce Applications 3. Deployment in Salesforce 4. Introduction to the Force.com Migration Tool 5. Version Control 6. Continuous Integration 7. Continuous Testing 8. Tracking Application Changes and the ROI of Applying DevOps to Salesforce 1. Other Books You May Enjoy Index

Handling branches using the Git CLI


After the Git clone, you will, by default, get code for the default branch set on your repository. In our case, it is the master branch. Let's check which branch we have cloned using the following command:

$git branch 
* master

 

The asterisk in front of the branch name indicates a current branch.

Let's create a test branch:

$git branch test

This will create a new branch named test, on your local Git repository:

$git branch* master  test

Now you will see two branches in your local Git repository, the  git branch <BRANCH_NAME> command will create a branch from the current branch. So, the test branch is created from the master branch.

Switch to the newly created the test branch and push it to the remote repository:

$git checkout testSwitched to branch 'test'$git push origin testUsername for 'http://54.202.196.64': rootPassword for 'http://[email protected]': Total 0 (delta 0), reused 0 (delta 0)remote: remote: To create a merge request for test, visit:remote...
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime
Visually different images