Skip to main content

Git

Git is a version control system that allows us to track changes to our code and collaborate with other developers. It is an essential tool for any software developer, and at Figuro, we use it to manage all of our code repositories.

Git Basics

Git Stash

Git stash is a way to temporarily save changes to your working directory without committing them. This is useful when you want to switch branches, but don't want to commit your changes yet.

The following commands are helpul to revert changes made to your working directory if they are not yet committed. For example, if you have made changes to a file or installed a library that modified several files, but you want to revert them.

git stash save --keep-index --include-untracked
git stash drop