hi,
i like to change some tracked files without committing them. when i do "git commit -a", every change is comitted.
sometimes i like to play with layer1 code or even change Makefile.inc, but i don't want to reset my changes before committing.
any idea how to create a list of omitted files?
andreas
Hi,
i like to change some tracked files without committing them. when i do "git commit -a", every change is comitted.
sometimes i like to play with layer1 code or even change Makefile.inc, but i don't want to reset my changes before committing.
any idea how to create a list of omitted files?
look at the .gitignore file. Since it's checked in, you need to add it to itself as well ...
Also, you might want to look at 'git citool' to cherry pick what you want to commit (down to chunk/line selection). There is also a '-i' interactive commit mode.
Also, in either 'git citool' or by adding the '-v' option to commit, you can view the changes you're about to commit and I always find that useful to look at it for a few seconds before committing.
Cheers,
Sylvain
Andreas.Eversberg wrote:
i like to change some tracked files without committing them. when i do "git commit -a", every change is comitted.
sometimes i like to play with layer1 code or even change Makefile.inc, but i don't want to reset my changes before committing.
any idea how to create a list of omitted files?
Two ways:
"git commit -a" = "git add ." + "git commit"
You can use git add directly, to control exactly what is included in the index (tracked) and later committed. Then you run only git commit to create the commit.
As an alternative or perhaps complement, if making temporary changes for testing in the middle of something else, check out git stash. It pushes all uncommitted changes onto a temporary patch stash, and they can be recalled easily later.
//Peter
baseband-devel@lists.osmocom.org