Push

Updated: 01/31/2019 by Computer Hope

Push may refer to any of the following:

1. In general, push refers to the action of pressing down on something. For example, with a push-button you are pressing down on a button either physically (e.g., a power button) or virtually in a software program (e.g., clicking the back button in a browser).

2. In programming, push is a function that can add one or more elements to the end of an array. For example, in the Perl code below push adds "three" to the end of the array to make it "one two three". With push, you could also push a variable to the end of an array or combine arrays by pushing another array to the end of an array.

my @example = ('one', 'two');
push @example, 'three';
print "@example";        #Prints: one two three
Tip

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

3. With Git, push is a term that describes the process of sending (uploading) the updates you've done in your local repository to a Git remote repository. In contrast, pull is the process of downloading the files in a remote repository to your local Git repository.

4. Push is another name for a back quote.

5. Push may also be used to describe push technology, which is used with Internet communication.

Programming terms, Pushd, Push notification