• Push to a remote branch that already exists locally

    2 min read

    In cas we need to have multiple remote repositories it's branches names are likely to clash. A clear example it the master branch. How can we switch between branches from remote repositories if they have the same name?

    08/07/2021

    Read more...
  • git: Get a diff between branches

    1 min read

    If you want to compare the differences between two branches on git, it's quite straightforward: We just need to tell from which branch to witch one we want to do the diff

    25/06/2021

    Read more...
  • Difference between git reset: soft vs hard

    1 min read

    To be able to partially apply commits to other branches some times comes handy to use git reset together with git stash.

    With git reset we will be able to modify how the changes are stored on the repository. Let's see the differences between git reset --soft and git reset --hard.

    19/05/2021

    Read more...
  • git: Apply commit to another branch

    2 min read

    When we have a change (commit) that we want to apply to several branches we can use git cherry-pick.

    26/04/2021

    Read more...
  • Usage of git stash

    2 min read

    While working on a change it can happen that someone else have updated the remote repository with completely unrelated changes. Instead of having to perform a merge commit we can download the changes to apply our changes on top of that commit.

    06/01/2021

    Read more...

More recent...

From pet to cattle
Treat your kubernetes clusters like cattle, not pets
Categories