Git Essentials A Hands On Guide for Junior Developers on Mastering Basic Workflows rebase

Опубликовано: 03 Март 2025
на канале: TramoTech
405
15

In today’s video I wanna show you a basic workflow used to incorporate your changes in Git repository. For our demo we will use Gitlab(the workflow is the same for other tools like Bitbucket)

When working in a project your daily task would be to checkout the code from a remote git repository, create a branch for your task and push the changes back to the remote server. However, this should be done in a way that takes into account the changes from the other teams members without accidentally losing any work.

So Before pushing your local changes, you need to make sure that your local copy of the parent branch (the branch from which your feature branch was created) is up-to-date. This involves pulling the latest changes from the remote repository to your local parent branch.

After that you rebase your branch on top of the latest changes from the parent branch.

https://tramotech.de