Should you ignore .obj files when pushing to git repo?

user290831

Should you ignore .obj, .mtl, ect... files in order to be able to track lines added and removed from places like GitHub?

When I commit with .obj files and pushed it added 13,000 lines of code to my stats. I feel like that is so unfair. Is there a way to upload model and keep lines off? If not how do most people and teams share these models?

I checked github's documentation, but couldn't find anything related to the subject.

Also, when I added to .gitignore it did not ignore the .obj files. So wierd.

I tried *.obj and obj as lines to ignore. Neither worked.

# Ignore .obj files #
*.obj
*.mtl

Still get this...

You can view image here:

VonC

Git can ignore those files if you remove them first from the index (not from your disk).

git rm --cache *.obj

You can recursively remove the content of a folder too, like build/: see

Anything that can easily be regenerated shouldn't be included in the repo.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Ignoring certain files when pushing an existing repo to a new Github repo

From Dev

Ignoring certain files when pushing an existing repo to a new Github repo

From Dev

CtrlP: ignore files in subdirectory within a git repo

From Dev

Ignore OSX hidden "._" files from git repo

From Dev

Git repo default ignore files permissions

From Dev

Git pushing to a private repo

From Dev

Should I ignore UnserInterfaceState and xcschememanagement files in git?

From Dev

In Git how can you check which repo in Github you are pushing to from the command line?

From Dev

Error Pushing to Remote Git Repo

From Dev

Pushing new files to new repo

From Dev

How can I ignore big files and push to git repo

From Dev

What files of a meteor project I should push to a Git repo?

From Dev

Should I add Django admin static files to my git repo?

From Dev

Stripping a git repo of all committed files that should have been ignored

From Dev

Add files to .git and do not delete them when pushing to upstream

From Dev

fatal: Not a git repository: when adding files to git repo

From Dev

What files/folders should I ignore in a git repository of an iOS app?

From Dev

What files/folders should I ignore in a git repository of an iOS app?

From Dev

how to stop pushing deleted files to remote repo?

From Dev

how to stop pushing deleted files to remote repo?

From Dev

Pushing new files to specific branch in existing repo

From Dev

"Please make sure all files only have LF endings" error when pushing to a GitHub repo

From Dev

How do you get a Git merge to ignore conflicts in selected files?

From Dev

Git not pushing all files and folders

From Dev

Should I ignore the .idea folder when using PyCharm with Git?

From Dev

Delete deleted files/folder when updating a git repo

From Dev

Ignore types of files when you tab from the command line

From Dev

Git ignore committed files

From Dev

Git ignore committed files

Related Related

  1. 1

    Ignoring certain files when pushing an existing repo to a new Github repo

  2. 2

    Ignoring certain files when pushing an existing repo to a new Github repo

  3. 3

    CtrlP: ignore files in subdirectory within a git repo

  4. 4

    Ignore OSX hidden "._" files from git repo

  5. 5

    Git repo default ignore files permissions

  6. 6

    Git pushing to a private repo

  7. 7

    Should I ignore UnserInterfaceState and xcschememanagement files in git?

  8. 8

    In Git how can you check which repo in Github you are pushing to from the command line?

  9. 9

    Error Pushing to Remote Git Repo

  10. 10

    Pushing new files to new repo

  11. 11

    How can I ignore big files and push to git repo

  12. 12

    What files of a meteor project I should push to a Git repo?

  13. 13

    Should I add Django admin static files to my git repo?

  14. 14

    Stripping a git repo of all committed files that should have been ignored

  15. 15

    Add files to .git and do not delete them when pushing to upstream

  16. 16

    fatal: Not a git repository: when adding files to git repo

  17. 17

    What files/folders should I ignore in a git repository of an iOS app?

  18. 18

    What files/folders should I ignore in a git repository of an iOS app?

  19. 19

    how to stop pushing deleted files to remote repo?

  20. 20

    how to stop pushing deleted files to remote repo?

  21. 21

    Pushing new files to specific branch in existing repo

  22. 22

    "Please make sure all files only have LF endings" error when pushing to a GitHub repo

  23. 23

    How do you get a Git merge to ignore conflicts in selected files?

  24. 24

    Git not pushing all files and folders

  25. 25

    Should I ignore the .idea folder when using PyCharm with Git?

  26. 26

    Delete deleted files/folder when updating a git repo

  27. 27

    Ignore types of files when you tab from the command line

  28. 28

    Git ignore committed files

  29. 29

    Git ignore committed files

HotTag

Archive