giulioforesto / planets

A 2D plotted planets movement simulator
0 stars 0 forks source link

Git-related : ignore file(s) during add/commit #2

Closed gabrielfougeron closed 10 years ago

gabrielfougeron commented 10 years ago

Title is rather self explanatory.

giulioforesto commented 10 years ago

Remove the files from your directory.

Commit and push to remote.

Ignore the files (add output/* to .gitignore for folder output or *.txt for all .txt files for example).

Commit and push to remote.

Restore your files.

Check with git status that your files are ignored.

giulioforesto commented 10 years ago

Solved by untracking files (removed them from the index with git rm --cached <file>).