DEV Community

Manu Magalhães
Manu Magalhães

Posted on

What is your greatest issue with git/GitHub?

Hi all,

I'm preparing a presentation on #git #github and would like your input.

  • What is your greatest issue with git/GitHub?
  • What would you like to understand better?
  • What is that thing you always have to google?
  • What is your best tip?

Top comments (2)

Collapse
 
gkucmierz profile image
Grzegorz Kućmierz

If I committed something that I shouldn't commit.
How to reverse it.

For example I accidentally committed .env file 5 commits ago, and I forgot to add it to .gitignore.

I need clear Instruction, how to remove it from last 5-th commit without changing other commits.

Collapse
 
manumagalhaes profile image
Manu Magalhães • Edited

Hi Grzegorz,

Have you found a solution yet? Give a go at this one (see the explanation for git reset HEAD~3): stackoverflow.com/a/46350644