you CAN push a single file:
# git add [the file]
# git commit -m'Your message'
# git push
This will commit and push a single file.
El 03/12/2012, a las 08:02, ARSHAD ALI <arshadalig...@gmail.com> escribió:
> Thank u sir, its mean i cannot push a single file after "commit" but whole
> working directory will be push to bare repository. I mean GIT works with
> directories not with single files in terms of push, pull, clone etc."AM I
> RIGHT SIR"???????
> On Monday, December 3, 2012 11:50:09 AM UTC+5, Thomas Ferris Nicolaisen wrote:
> On Monday, December 3, 2012 7:43:38 AM UTC+1, ARSHAD ALI wrote:
> Can I push a single file to main repository or does GIT works with sing
> files. please help me
> The quick answer is no, Git pushes happen on a *commit* basis. But if you
> make and push commits that only include changes in a single file, naturally
> only the single file will be changed.