I want to commit some files to GitHub, and I have created one ignore file, but how do I view the file size before committing?
Asked
Active
Viewed 6,245 times
9
-
Do you mean the real file size or the actual amount of data that is going to be transmitted? – elitalon Feb 28 '11 at 08:11
-
the actual amount of data that is going to be transmitted to github – why Feb 28 '11 at 08:21
1 Answers
9
Just a note on terminology - you record changes in a new "commit" locally (with git commit
) and then would "push" your changes to GitHub. You only push commits, not particular files.
You've clarified in a comment that what you're after is the amount of data that would be uploaded when you do git push
, in which case Jefromi's answer to the question Predict how much data will be pushed in a git push should help you.

Community
- 1
- 1

Mark Longair
- 446,582
- 72
- 411
- 327
-
Blair's answer to that question is also excellent, just not quite as porcelain-y. – Cascabel Feb 28 '11 at 15:32