I'm not all that familiar with git, so bear with me. I have seen several references to 'git plush' as the "proper" method of pushing a committed change, and I have been using this for quite some time. However now, on a repo that I only started working on recently, plush is working differently than I have seen it work before. Now it is bring my tree up to date and then merging all the updated files into my commit and recommitting all of files that got updated with the pull.
# git commit
[master aaf2cc1] commit comment
1 files changed, 233 insertions(+), 0 deletions(-)
create mode 100755 my-file.rb
(19:23:11)-(rkasten@tash)-(jobs:0)-(! 633)-(~/project)
# git pull && git push
remote: Counting objects: 16, done.
remote: Compressing objects: 100% (10/10), done.
remote: Total 10 (delta 6), reused 0 (delta 0)
Unpacking objects: 100% (10/10), done.
From ssh://server.company.com/repo/git/project
6a5aa62..228d9b1 master -> origin/master
Merge made by recursive.
DEMO_files/joshtest.rb | 119 ++++++++++++++++++++
.../portal/prod-portal-config.json | 4 +-
portal-maintenance.rb | 5 +-
3 files changed, 124 insertions(+), 4 deletions(-)
create mode 100755 DEMO_files/joshtest.rb
Counting objects: 7, done.
Compressing objects: 100% (5/5), done.
Writing objects: 100% (5/5), 3.00 KiB, done.
Total 5 (delta 2), reused 0 (delta 0)
To ssh://snc@server.company.com/repo/git/project
228d9b1..375bdf4 master -> master
As you can see, even though I committed only my 1 file (my-file.rb), my push results in a commit of my 1 file and a merge of those 3 files which were previously pushed by other people. So am I using git wrong? Like I said, I've never seen this problem before.