2024-03-06

  • .gitkeep

git only tracks files and not empty directories,for instead we want to create an empty directory in a project directory, instead of creating a dummy file, a standard practice is to create a .gitkeep file within this empty directory.

  • git stash

git stash is useful,when you want to switch to another branch, but there are few local changes in your current branch and you dont want to commit them,in this scenario git stash can be used.

git stash apply - apply the stashed changes to the working project

git stash pop - pop’s the changes and applies to working set.