Skip to content

flavia bastos

  • Home
  • About

Tag: git

Como reverter um commit no git

November 8, 2022October 28, 2022

Existem algumas maneiras diferentes de desfazer as coisas no git, mas para o propósito deste post vamos considerar o seguinte cenário: um repositório com cópias locais e remotas vários colaboradores um commit recente que já foi adicionado ao repositório remoto ("merged", pra usar o termo "git" em inglês) mas que precisa ser revertido git revert … Continue reading Como reverter um commit no git

How to revert a commit in git

October 11, 2022October 7, 2022

There are a few different ways to undo things in git but for the purpose of this post we will stick with the following scenario: a repository with local and remote copies multi-person collaborators a recent change merged to remote (and potentially deployed) that needs to be reverted git revert to the rescue! ✨ TL; … Continue reading How to revert a commit in git

Managing local git branches with git rebase

March 3, 2022March 3, 2022

When you work on a codebase with other people, you need to manage your local branches: you need to ensure that when you push some code and create a merge/pull request on the remote branch, your changes will be easily integrated with the main codebase. And by "easily" I mean preferably without merge conflicts or … Continue reading Managing local git branches with git rebase

git stash 101

May 26, 2021May 26, 2021

git stash allows you to save your work in progress out of your way

Git, GitHub and GitLab. Are they all the same thing?

September 2, 2020October 26, 2021

A few years back when I got serious about learning to program to become a software developer, I remember hearing about version control and getting really confused about git and GitHub (one can add GitLab to this list also!). Are they the same thing? Eventually I figured it out but this past week in a … Continue reading Git, GitHub and GitLab. Are they all the same thing?

Magnifying glass over computer keyboard

Find the commit that introduced a bug in your code: how to use git bisect in 7 steps

April 9, 2020February 5, 2022

When I first heard about git bisect I thought it sounded scary and complicated, so I never looked for an opportunity to learn more about it and use it. That's until last week when I ran into a bug in our master branch. I knew that the bug was not there two days before so … Continue reading Find the commit that introduced a bug in your code: how to use git bisect in 7 steps

Remove a commit from history in Git – local and remote

September 25, 2019February 5, 2022

I recently committed an API key to a repository and even worse, I pushed to GitHub before I realized my mistake... 😦 Removing the key from the code base wouldn't completely solve my problem since a commit diff would still display my secret key. The solution was to remove that commit from history. Removing commit … Continue reading Remove a commit from history in Git – local and remote

Git logo

Git: most used git commands

November 9, 2018February 5, 20222 Comments

Here's a list of the git commands I use most often: git status when to use it: to know what is the status of the files in your branch. It will show what files have been modified, added, removed, committed, etc. A snapshot of your branch's current situation. It's super safe because it doesn't change anything. … Continue reading Git: most used git commands

Find me

  • GitHub
  • LinkedIn
  • Twitter

Recent Posts

  • Book review: The Programmer’s Brain
  • Como reverter um commit no git
  • TIL: installed packages in Python – list, and show
  • How to revert a commit in git
  • Managing local git branches with git rebase

Categories

  • books (3)
  • career (1)
  • command line (13)
  • git (8)
  • go (1)
  • gRPC (2)
  • housekeeping (2)
  • how-to (8)
  • JavaScript (4)
  • networking (3)
  • python (10)
  • quick-tip (6)
  • rails (1)
  • til (8)
  • web development (2)

Tags

about argv aws beginner book built-in career code coding milestone command line data structure debug debugger decorator dev environment dictionary docker git go golang gRPC gRPC-Web how-to ifconfig iniciante JavaScript js lambda lessons linux list nc netcat network pdb ping productivity profiling prompt pt-BR python quick-tip rails set sort ss til tools traceroute tuple vi vim

Follow via RSS

  • RSS - Posts

Enter your email address to follow this blog and receive notifications of new posts by email.

Join 137 other subscribers
A WordPress.com Website.
  • Follow Following
    • flavia bastos
    • Already have a WordPress.com account? Log in now.
    • flavia bastos
    • Customize
    • Follow Following
    • Sign up
    • Log in
    • Report this content
    • View site in Reader
    • Manage subscriptions
    • Collapse this bar