---
schema_version: "1"
id: 6a04b3241c326b052ca6524dff26cf8285752e6390c5f3ca20d3c12678863202
title: Branch (sf_devops__Branch__c)
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/salesforcedx/devops-center-dev/guides/devops-center/custom-objects/sforce-api-objects-sf-devops__branch__c.md
canonical_url: https://developer.salesforce.com/docs/platform/devops-center-dev/guide/sforce-api-objects-sf-devops__branch__c.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: fb1e08bcf07801187139ffe178589ffa4fbef199b98e6e2b732c09e7d34e014c
products:
  - DevOps Center Developer Guide
  - salesforcedx
---

# Branch (sf_devops__Branch__c)

Stores the state of a branch in the source control repository (also version control system, or VCS). In the DevOps Center object model, this object is a child of the Repository where the branch lives. Work Item and Pipeline Stage records refer to this object. This object is available in all orgs that have DevOps Center installed.

## Supported Calls

`create()`, `delete()`, `describeLayout()`, `describeSObjects()`, `getDeleted()`, `getUpdated()`, `query()`, `retrieve()`, `search()`, `undelete()`, `update()`, `upsert()`

## Fields

|Field|Type|Properties|Description|
|-----|----|----------|-----------|
|`Name`|string|Autonumber, Defaulted on create, Filter, idLookup, Sort|Name of the Branch record.|
|`OwnerId`|reference|Create, Defaulted on create, Filter, Group, Sort, Update|ID of the user who owns this record. This field is a polymorphic relationship field. Relationship name: Owner. Relationship type: Lookup. Refers to: Group, User.|
|`sf_devops__Ignore_Rules__c`|textarea|Create, Nillable, Update|Serialized JSON representation of the preprocessed contents of the `.forceignore` file on the branch.|
|`sf_devops__Name__c`|string|Create, Filter, Group, Sort, Update|Name of the branch.|
|`sf_devops__Parent_Remote_Reference__c`|string|Create, Filter, Group, Sort, Update|Unique ID that represents where this branch diverged from its parent branch. In GitHub, this ID is called a SHA. DevOps Center uses this ID to recreate the branch if necessary. For example, if a user deletes the branch on GitHub, but DevOps Center isn’t finished using the branch, then DevOps Center can recreate it using this ID.|
|`sf_devops__Remote_Reference_Date__c`|dateTime|Create, Filter, Nillable, Sort, Update|Last date and time when the branch identified by the Remote Reference field was updated.|
|`sf_devops__Remote_Reference__c`|string|Create, Filter, Group, Sort, Update|Unique ID of the tip of this branch. In GitHub, this ID is called the HEAD SHA.|
|`sf_devops__Repository__c`|reference|Create, Filter, Group, Sort, Update|A reference to the source code repository in which this branch lives. This field is a relationship field. Relationship name: sf_devops__Repository__r. Relationship type: Lookup. Refers to: sf_devops__Repository__c.|

**See Also**  


-   [Repository (sf_devops__Repository__c)](https://developer.salesforce.com/docs/platform/devops-center-dev/guide/sforce-api-objects-sf-devops__repository__c.md)
-   [Work Item (sf_devops__Work_Item__c)](https://developer.salesforce.com/docs/platform/devops-center-dev/guide/sforce-api-objects-sf-devops__work-item__c.md)
-   [Pipeline Stage (sf_devops__Pipeline_Stage__c)](https://developer.salesforce.com/docs/platform/devops-center-dev/guide/sforce-api-objects-sf-devops__pipeline-stage__c.md)

