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.

  • How can I automagically make a checkout upon push?
  • How to join last N merge commits into one?
  • What does this mean from a security perspective: “Caution: This repository is private but the published site will be public.”
  • Is it possible to include a file in your .gitconfig
  • Creating quick snapshots of a repository (git?)
  • Sorting out a Git mess
  • 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. :{

  • git format-patch without committing
  • CruiseControl.Net with git build fails when running as a service
  • Open eclipse projects synced with git that are outside the workspace
  • Git: Removing carriage returns from source-controlled files
  • git: Get absolute path of file, relative to repo
  • files that have not been changed show up in unstaged list after git stash
  • 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.