While you are in the middle of working on something complicated, you find an unrelated but obvious and trivial bug. You would like to fix it before continuing. You can use git-stash(1) to save the current state of your work, and after fixing the bug (or, optionally after doing so on a different branch and then coming back), unstash the work-in-progress changes.
P. Andrews, J. Pane, and I. Zaihrayeu. Workshop on Discovering Meaning On the Go in Large Heterogeneous Data 2011, International Joint Conference on Artificial Intelligence, (2011)
F. Grasso. Artificial Intelligence in Medicine - 9th Conference on Artificial Intelligence in Medicine in Europe, AIME, volume 2780 of LNAI, page 179--188. Springer-Verlag, (2003)
C. Reed, and F. Grasso. Proceedings of the International Conference on Computational Sciences-Part I., volume 2073 of Lecture Notes in Computer Science, page 999--1008. London, UK, Springer-Verlag, (28-30 May 2001)
N. Shechtman, and L. Horowitz. Proceedings of the SIGCHI conference on Human factors in computing systems, page 281--288. Ft. Lauderdale, Florida, USA, ACM Press, (05-10 April 2003)
C. Reed, and D. Long. Proceedings of the 17th International Conference on Computational Linguistics and 36th Annual Meeting of the Association for Computational Linguistics (COLING-ACL98), page 1091--1097. Montreal, Canada, (1998)
J. Hirschberg, and J. Pierrehumbert. The 24th. Annual Meeting of the Association for Computational Linguistics, Association for Computational Linguistics, (1986)