Understanding the Difference Between Local and Remote Branches in Oracle VBS

🌱 What is a Branch?

A branch is like a copy of your project where you can make changes without affecting the main version. Think of it like a sandbox to try things out.

 

📍 What is a Remote Branch?

  • This is a branch stored on the server.

  • Everyone in your team can see and use it.

  • You can’t change it directly — you have to bring it to your workspace first.

 

💻 What is a Local Branch?

  • This is a branch in your workspace.

  • Only you can see it until you push changes.

  • You work here, test, and save your changes.

 

🔄 Why Do I See Some Branches as Remote and Others as Local?

Example:
You have 3 branches: Branch1, Branch2, and Branch3.

  • If you’ve worked only on Branch2, it shows under Local Branches.

  • Branch1 and Branch3 will show under Remote Branches until you open or edit them.

As soon as you switch to a remote branch, a local copy is created, and it moves to the Local Branch list.

 

📤 What Does Push Mean?

When you’re done making changes in a local branch, you need to Push them to the remote branch. This makes your changes visible to others.

If you don’t push, your updates stay private.

 

I hope this blog post was helpful for you. If you have any questions or feedback, please leave a comment below.