git question
I am trying git for a programming project and It keeps saying that I have to "git add" all the files i've modified since the last commit, and it's getting on my nerves.
Is that really true? If so what's the purpose? |
Quote:
|
I added those files before and did not change their names. I just modified their contents.
Code:
$ git status |
Quote:
then i read git help commit. it will do git add then git commit. first adding to tree then committed (from DOCs (git help commit) Note: even modified files must bb "added"). this explains the behavior. |
So "git commit -a" does what I want and does not add new files that I might not want version-controlled, right?
|
Quote:
and use .gitignore for files should not be version controled |
Quote:
What does that mean? |
Quote:
|
So I should remember every file I modified and add it before every commit? There really isn't an easier way?
|
Quote:
|
If it adds automatically, then why would I be asking this?
|
Quote:
|
I asked this question because for some reason modifying the contents of a file and running "git commit" did not commit the changes.
|
Quote:
Code:
man git-commit Quote:
|
Quote:
|
All times are GMT -5. The time now is 12:18 PM. |