Git Cheat Sheet
#Git
Removing a file from the Git repository that was added to .gitignore
git rm -r --cached file_name
Without --cached
the file will be removed from both the Git repository (.git
folder) and the file system
Creating an empty commit
git commit --allow-empty -m "empty commit"
The -m
flag indicates to use the specified commit message (which can be taken from a file or the commit).
This article will be periodically updated