Skip to main content
G

it is an important part of any software development. In this section we are presenting some commands that are used commonly.

The following is a list of commands you often need.

Tags

Git remove a committed file

git reset HEAD app/models/localbackup/backup.sql

Or the following should do if it is a directory, you need to commit this removal so that the remote repository know and delete the older committed files.

git rm --cached cms_docker/web/modules/custom/ -r
git status
git add .
git commit -m 'Remove custom modules from git'