Comment commencer à commettre via git pour bitbucket - ne Pas voir les changements

Peut-être que je vais à propos de cette erreur, mais je suis git tutoriels. J'ai un espace de stockage sur bitbucket appelé "testrepos" et je suis en train de travailler avec elle.

Tout d'abord, je clone avec git clone https://[email protected]/my_username/testrepos.git

Maintenant, les pensions de titres est vide, j'ai donc fait un fichier appelé main.cpp. Je puis exécutez "git add main.cpp". Si je lance git status maintenant, je vois qu'il y a un nouveau fichier appelé main.cpp pour être validé.

Enfin, je lance git commit -m 'First commit'. Il y a 0 changements, 0 insertions, et 0 suppressions! Pourquoi mes fichiers ne sont pas commettre? Je suis à l'aide de push et pull.

modifier Voici le log complet:

Welcome to Git (version 1.7.7-preview20111014)

Run 'git help git' to display the help index.
Run 'git help <command>' to display help for specific commands.

chris@EDI ~
$ cd git

chris@EDI ~/git
$ git clone https://[email protected]/my_username/testrepos.git
Cloning into testrepos...
Password:
warning: You appear to have cloned an empty repository.

chris@EDI ~/git
$ cd testrepos/

chris@EDI ~/git/testrepos (master)
$ git pull
Password:
Your configuration specifies to merge with the ref 'master'
from the remote, but no such ref was fetched.

chris@EDI ~/git/testrepos (master)
$ git add temp.cpp

chris@EDI ~/git/testrepos (master)
$ git status
# On branch master
#
# Initial commit
#
# Changes to be committed:
#   (use "git rm --cached <file>..." to unstage)
#
#       new file:   temp.cpp
#

chris@EDI ~/git/testrepos (master)
$ git commit -m 'Committing temp file'
[master (root-commit) 5d659df] Committing temp file
 Committer: unknown <chris@EDI.(none)>
Your name and email address were configured automatically based
on your username and hostname. Please check that they are accurate.
You can suppress this message by setting them explicitly:

    git config --global user.name "Your Name"
    git config --global user.email [email protected]

After doing this, you may fix the identity used for this commit with:

    git commit --amend --reset-author

 0 files changed, 0 insertions(+), 0 deletions(-)
 create mode 100644 temp.cpp

chris@EDI ~/git/testrepos (master)
$ git pull
Password:
Your configuration specifies to merge with the ref 'master'
from the remote, but no such ref was fetched.

chris@EDI ~/git/testrepos (master)
$ git push
Password:
Everything up-to-date
N'avez-vous pas besoin de pousser et tirer pour obtenir des données dans et hors de pensions?
Veuillez poster un log complet de toutes les commandes que vous utilisez, à partir de la première "git pull", y compris les cd commandes, etc.
Hildreth j'ai posté le log complet de toutes les commandes. Merci.

OriginalL'auteur | 2011-10-16