Home > Net >  Github (or other SCM) Tracking only changed files
Github (or other SCM) Tracking only changed files

Time:10-09

I am working on the game mod and want to manage the work I am doing on some VCS, i.e. github. The work is done on several files accross several subfolders. Thus it would be logical to have an entire game as a project. But I don't want to upload the entire game to github. It would be ideal if it was possible to manage just the files which were changed. That way it would be also eas(ier) to share this project with anyone who is insterested.

So, basically what I want is:

  1. the entire project on git locally
  2. only upload to git hub the files that have changed

I saw similar question here: What is the best strategy to store in repository only changed files?

.gitignore is an option, but feels quite cumbersome. And managing this manually kind of defeats the point of having it on github to start with.

Also, the above link was for the question asked 6 years ago.

Any new ideas for this solution?

CodePudding user response:

You can only add and commit files you want to be saved on Github. And other local files would be saved only on your computer

CodePudding user response:

Git by design requires that every commit contain every file. If you don't want that, you don't want Git (nor Mercurial, etc). Consider using an old file-oriented version control system such as RCS (though such systems are generally not distributed, and there's no convenient forge like GitHub for that).

  • Related