Updated: 09/12/2023 by Computer Hope

Push may refer to any of the following:

1. In general, push refers to 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 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

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

3. With Git, push sends (uploads) updates you've done in your local repository to a Git remote repository. In contrast, pull is downloading the files from a remote repository to your local Git repository.

4. Push is another name for a back quote.

5. Push is short for push technology, used with Internet communication to send notifications.

6. Push is the name of a transition.

Programming terms, Pull, Pushd, Push notification, Revision control