← Blog

Untracked files from git

October 26, 2015

Basic commands to stop version-controlling files in git.

echo "FILE_NAME" >> .gitignore
git rm --cached FILE_NAME
git add -u
git commit -m "removing files from version control"

# Sync with the git server: pull and push to record your local change
git pull origin BRANCH
git push origin BRANCH
studiesgit