I'm using Git 2.1.60 for Windows and I want to push my directory to my github URL
Suppose I have a directory: Mydir
and there is "a.txt" in Mydir.
I want to commit only Directory. But when I type like this:
git add Mydir
git commit -m "Mydirectory"
git push origin master
Then in my github, commit message is updated not only directory but also files in Mydir.
I just want to show commit message only Mydir.
So I changed a.txt file and i tried this:
git add Mydir/a.txt
git commit -m "this is a.txt"
What I want is
Mydir "Mydirectory"
And if I click Mydir in github,
a.txt "this is a.txt"
But When I type like this(same as above code):
git add Mydir/a.txt
git commit -m "this is a.txt"
The resuls is
Mydir "this is a.txt"
And if I click Mydir in github,
a.txt "this is a.txt"
How can I just commit only directory?
or How can I just commit only a.txt file?
Is it impossible?