DZone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
Refcards Trend Reports
Events Video Library
Over 2 million developers have joined DZone. Join Today! Thanks for visiting DZone today,
Edit Profile Manage Email Subscriptions Moderation Admin Console How to Post to DZone Article Submission Guidelines
View Profile
Sign Out
Refcards
Trend Reports
Events
View Events Video Library
Zones
Culture and Methodologies Agile Career Development Methodologies Team Management
Data Engineering AI/ML Big Data Data Databases IoT
Software Design and Architecture Cloud Architecture Containers Integration Microservices Performance Security
Coding Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Culture and Methodologies
Agile Career Development Methodologies Team Management
Data Engineering
AI/ML Big Data Data Databases IoT
Software Design and Architecture
Cloud Architecture Containers Integration Microservices Performance Security
Coding
Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance
Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks

Integrating PostgreSQL Databases with ANF: Join this workshop to learn how to create a PostgreSQL server using Instaclustr’s managed service

Mobile Database Essentials: Assess data needs, storage requirements, and more when leveraging databases for cloud and edge applications.

Monitoring and Observability for LLMs: Datadog and Google Cloud discuss how to achieve optimal AI model performance.

Automated Testing: The latest on architecture, TDD, and the benefits of AI and low-code tools.

Related

  • Understanding Git
  • AWS CodeCommit and GitKraken Basics: Essential Skills for Every Developer
  • On Git and Cognitive Load
  • CICD Doesn’t Have To Be a Four Letter Word for Oracle Database Developers

Trending

  • Implementing Stronger RBAC and Multitenancy in Kubernetes Using Istio
  • Best Practices for Developing Cloud Applications
  • Understanding Europe's Cyber Resilience Act and What It Means for You
  • Build Quicker With Zipper: Building a Ping Pong Ranking App Using TypeScript Functions
  1. DZone
  2. Testing, Deployment, and Maintenance
  3. Deployment
  4. How to Switch Branches Without Losing Your Work [Video]

How to Switch Branches Without Losing Your Work [Video]

This video provides two different answers to the question, ''How do I switch branches without losing the code I was working on?''

Trisha Gee user avatar by
Trisha Gee
·
Jan. 19, 17 · Presentation
Like (1)
Save
Tweet
Share
4.79K Views

Join the DZone community and get the full member experience.

Join For Free

We regularly get questions about how to achieve a particular thing. As developers, there are parts of our workflow that trip us up, that our tools can help us with if we understand how to use them. So, we’ve decided to start answering these real-world questions with videos showing what to do.

The first video features me, Trisha Gee (Developer Advocate for IntelliJ IDEA) and Gary Hockin (Developer Advocate for PhpStorm) answering the question, “How do I switch branches without losing the code I was working on?” Through frequent battles with Git, I have learned that there’s always more than one way to do things, so in this video, we present two different options. We’re also two advocates using two different IDEs, coding in two different languages — many challenges we face as developers aren’t unique to our language or tool.

Branch (computer science)

Published at DZone with permission of Trisha Gee, DZone MVB. See the original article here.

Opinions expressed by DZone contributors are their own.

Related

  • Understanding Git
  • AWS CodeCommit and GitKraken Basics: Essential Skills for Every Developer
  • On Git and Cognitive Load
  • CICD Doesn’t Have To Be a Four Letter Word for Oracle Database Developers

Comments

Partner Resources

X

ABOUT US

  • About DZone
  • Send feedback
  • Careers
  • Sitemap

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • Become a Contributor
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 3343 Perimeter Hill Drive
  • Suite 100
  • Nashville, TN 37211
  • support@dzone.com

Let's be friends: