Oct 12, 2026 · 26 min · 9 segments
In this episode we look into more essential Git commands, such as branching and merging. Branching and merging are key concepts that help you develop code or even text documents in a team. They help…
What is it and why does it matter? In short, with branching you can maintain and work on separate versions of your code independently.
And merging is kind of the inverse operation where you bring changes of your files from one branch to another.
Well, that all sounds very airy-fairy and very general and may not make a lot of sense initially.
You spend a long time developing it and you have to use it regularly to get results for your project.
But, on the other hand, you really need this script to work and you can't afford to break it, so what do you do? And this is exactly where Git branches come to the rescue.
This main or master branch is like the trunk of a tree from which you can create as many branches as you like.
so for this command it would be git branch development and voila you have a new branch called development and from now on git maintains two versions of your script and you can use one unchanged to run your analysis on the main branch and add some new features to the script on the development branch To switch between branches you would use the command git checkout followed by the name of the branch you want to switch to.
If at any time you're unclear which branch you're on you can simply type in git status And it will tell you.
You're happy with the changes and you want to run the change script from now on.
And in short, what you want to do is to merge your changes from the development branch back into the script on the main branch.
merge followed by the name of the branch from where you want to bring changes in and this means that if you do a merge you need to be on the right branch this can create some confusion and i myself fall victim of merging changes into the wrong branch in the past so before you do a git merge make sure you're on the right one with git status So back to the example from earlier.
What is it and why does it matter? In short, with branching you can maintain and work on separate versions of your code independently.
And merging is kind of the inverse operation where you bring changes of your files from one branch to another.
Well, that all sounds very airy-fairy and very general and may not make a lot of sense initially.
You spend a long time developing it and you have to use it regularly to get results for your project.
But, on the other hand, you really need this script to work and you can't afford to break it, so what do you do? And this is exactly where Git branches come to the rescue.
This main or master branch is like the trunk of a tree from which you can create as many branches as you like.
so for this command it would be git branch development and voila you have a new branch called development and from now on git maintains two versions of your script and you can use one unchanged to run your analysis on the main branch and add some new features to the script on the development branch To switch between branches you would use the command git checkout followed by the name of the branch you want to switch to.
If at any time you're unclear which branch you're on you can simply type in git status And it will tell you.
You're happy with the changes and you want to run the change script from now on.
And in short, what you want to do is to merge your changes from the development branch back into the script on the main branch.
merge followed by the name of the branch from where you want to bring changes in and this means that if you do a merge you need to be on the right branch this can create some confusion and i myself fall victim of merging changes into the wrong branch in the past so before you do a git merge make sure you're on the right one with git status So back to the example from earlier.
The rest of this transcript — segmented and speaker-labeled, so you land on the exact moment something was said
Search every transcript — by keyword, by phrase, or by meaning, across every show Radar indexes
Trends — what is surging across podcasts, measured against its own baseline
Alerts — when a name you follow appears in a newly indexed episode
No account is needed to search Radar.