Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mark-alfonso/3089b513f18cc00cff4b2c45ea38f385 to your computer and use it in GitHub Desktop.
Save mark-alfonso/3089b513f18cc00cff4b2c45ea38f385 to your computer and use it in GitHub Desktop.
bash manipulate .gitignore
# remove private in .gitignore
sed -i '' '/private/d' .gitignore
# add private in .gitignore
echo "private" >> .gitignore
# untrack private
git rm -r --cached private
git add .
git commit -m "untrack private before merge"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment