Hi, I'm a git beginner.
I have a github account.
I created an empty repository and cloned it on my laptop.
I added 2 files then

git add file1 file2
git commit -s
git push

Everything is fine.
I made changed to the readme.md, file1 and file2.

What I wish now is to commit *only* the changes I made to file1.
The problem is that I run 'git commit -a' before.
I tried to

git rm --cached -r .
git add file1
git commit --amend

but I get the message
 4 files changed, 9 insertions(+), 918 deletions(-)

It seems more that it tries to remove the files I've been un-tracking .

I'm probably reasoning the wrong way.

What do you suggest to do?

-- 
You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to