What happens if you interrupt a Git push?

I ran the following command:

git push -u origin master

The “push” was very big, many files, so it was taking time to upload. Halfway through I noticed I forgot to add a couple of files. So I did "Ctrl + C" in terminal (interrupting Git), and then after doing git add . , I committed again, and then pushed again.

  • git push is very slow for a branch
  • What's the status of my git submodule, and how can I clean it up?
  • Getting complete history of an SVN repo that's been renamed using git-svn
  • git setup for a single developer?
  • Is there an equivalent to flashbake (easy version control) for Perforce or Subversion
  • Clean up a fork and restart it from the upstream
  • Will Git know that the first one didn’t go through ? It takes a really long time to push (so I can’t test it easily. I have to wait for the push to finish which could take a while).

    EDIT: Hooray! Nothing seems to have gone terribly wrong. All I did was push again, and everything works. :{

  • How to prevent root from running git pull?
  • Multiple features for one branch - what's the point?
  • How can I get 'git status' to always use short format?
  • How to integrate Sublime Text with GitHub?
  • Smartgit: Moving local changes from stash to branch
  • GIT: after push, remote repo shows files as deleted
  • One Solution collect form web for “What happens if you interrupt a Git push?”

    The upstream Git repository will be oblivious to your attempted push, and no change will occur upstream. Unfortunately however, as it doesn’t do anything with the half-pushed files, it doesn’t store it and then expect a continuation of the push later on either. So it’s either push or don’t push, there is no try;)

    Git Baby is a git and github fan, let's start git clone.