Skip to content

Instantly share code, notes, and snippets.

@cerdman
Forked from dbogart/freshstart
Last active August 29, 2015 14:10
Show Gist options
  • Select an option

  • Save cerdman/17fc95b7e01bf072f464 to your computer and use it in GitHub Desktop.

Select an option

Save cerdman/17fc95b7e01bf072f464 to your computer and use it in GitHub Desktop.
//stops all files in root directory from being tracked in git
git rm --cached . -r
//if you need to modify .gitignore, or create it again because it disappeared, do it before the next command
//tracks all files except those in .gitignore
git add .
//commit
git commit -m 'commit message'
//push
git push
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment