Push may refer to any of the following:

  1. In general, push refers to the action of pressing down on something. For example, a push-button requires you to press down on a button to execute an action. A push-button is a physical button (e.g., a power button) or a virtual button in a software program (e.g., clicking the back button in a browser).

  2. In programming, push is a function that adds one or more elements to the end of an array or “top” of a stack.

For example, in the Perl code below, push adds “three” to the end of the array to make it “one two three”. You could also push variables to the end of an array or combine arrays by pushing one array to the end of another array.

my @example = (‘one’, ’two’); push @example, ’three’; print “@example”; #Prints: one two three

  1. With Git, push is sending (uploading) updates you’ve done in your local repository to a Git remote repository. In contrast, pull is downloading the files in a remote repository to your local Git repository.

You can use shift to remove the first element of an array or use pop to remove the last element of an array.

  1. Push is another name for a back quote.

  2. Push is short for push technology, which is used with Internet communication.

Programming terms, Pushd, Push notification, Revision control