我正在推送一些提交,然后想将其他文件暂存以进行另一次提交,但是推送也推送了未暂存的文件..我做错了什么?非分阶段提交是如何随着推送而上升的?
kirk:bear.com kirk$ git status
# On branch development
# Changes to be committed:
# (use "git reset HEAD <file>..." to unstage)
#
# modified: app/fonts/bear.eot
# modified: app/fonts/bear.otf
# modified: app/fonts/bear.svg
# modified: app/fonts/bear.ttf
# modified: app/fonts/bear.woff
# modified: app/styles/global/text/bear/glyphs.less
# modified: app/views/partials/global/actions.html
#
# Changes not staged for commit:
# (use "git add <file>..." to update what will be committed)
# (use "git checkout -- <file>..." to discard changes in working directory)
#
# modified: app/styles/core/components.less
# modified: app/styles/core/container.less
#
kirk:bear.com kirk$ git commit -a
[development 254d21c] fix(Style): Add "followers" and "following" icon as new three people icon. Switched "following" icon in "Me" modal.
9 files changed, 18 insertions(+), 2 deletions(-)
rewrite app/fonts/bear.eot (80%)
rewrite app/fonts/bear.otf (99%)
rewrite app/fonts/bear.svg (99%)
rewrite app/fonts/bear.ttf (78%)
rewrite app/fonts/bear.woff (99%)
kirk:bear.com kirk$ git push
Counting objects: 39, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (19/19), done.
Writing objects: 100% (20/20), 33.09 KiB | 0 bytes/s, done.
Total 20 (delta 13), reused 0 (delta 0)
To git@github.com:BigBear/bear.com.git
c70ca7c..254d21c development -> development
kirk:bear.com kirk$ git status
# On branch development
nothing to commit, working directory clean
kirk:bear.com kirk$ git status
# On branch development
nothing to commit, working directory clean
kirk:bear.com kirk$