Sign up with your email address to be the first to know about new products, VIP offers, blog features & more.

 




You are viewing Git

Git commands, tricks and how-to

NSA Open-sourced 32 Projects by opening account on Github

NSA Github Project

The National Security Agency(NSA), a national Level intelligence agency of the United States Department of Defense, is a known agency for keeping its works a secret. However, it has now joined GitHub and has gone public.

share

How to undo Git Commits

It is always been said that learning curve of Git can pose a challenge. However, Git has always been an exciting tool, that has enhanced developers ability to work together and ship faster. In the mean time, developers are challenged to undo what they did in past. Likewise, undo-ing commits already made on Git. Here’s a solution, we have put together some useful ways on How to Undo Git Commits.

Undo a git commit and redo

  1. So, you’ve made a commit and now it has to be removed.
  2. This leaves your working tree (the state of your files on disk) unchanged but undoes the commit and leaves the changes you committed unstaged (so they’ll appear as “ Changes not staged for commit ” in git status  and you’ll need to add them again before committing). If you only want to add more changes to the previous commit, or change the commit message [1],
share