In distributed version control, push is the action of sending local changes to a remote repository.
Questions tagged [push]
5455 questions
73
votes
6 answers
Adding items to an object through the .push() method
I'm doing a loop through few input elements of 'checkbox' type. After that, I'm adding values and checked attributes to an array. This is my code:
var stuff = {};
$('form input[type=checkbox]').each(function() {
stuff[$(this).attr('value')] =…

dperitch
- 1,869
- 2
- 17
- 22
73
votes
4 answers
Difference between concat and push?
Why does a return of the push method cause
Uncaught TypeError: acc.push is not a function
But a return concat results in the correct solution?
[1, 2, 3, 4].reduce(function name(acc, curr) {
if (even(curr)) {
return acc.push(curr);
}
…

The cows are in the Meadow
- 919
- 1
- 6
- 9
72
votes
9 answers
An image does not exist locally with the tag: while pushing image to local registry
I am trying to push an image to a local registry running in minikube but get the below error:
Successfully built ee84225eb459
Successfully tagged user/apiserver:0.0.1
$ docker push localhost:5000/user/apiserver:0.0.1
The push refers to a…

Amit Shah
- 751
- 1
- 5
- 7
72
votes
4 answers
Git warning: push.default is unset; its implicit value is changing
When I push to remote in Git, I get this warning:
warning: push.default is unset; its implicit value is changing in
Git 2.0 from 'matching' to 'simple'. To squelch this message
and maintain the current behavior after the default changes, use:
git…

JackSun
- 1,418
- 3
- 15
- 19
72
votes
6 answers
What's the easiest way to commit and push a single file while leaving other modifications alone?
I'm relatively new to Mercurial and my team is trying it out right now as a replacement for Subversion.
How can I commit and push a single file out to another repository while leaving other modifications in my working directory uncommitted (or at…

Ted Naleid
- 26,511
- 10
- 70
- 81
71
votes
4 answers
Visual Studio Code push automatically
Is it possible to make git push after commit automatically?
Now I need to click on push after commit manually and this is not very comfortable.

kagarlickij
- 7,327
- 10
- 36
- 71
70
votes
19 answers
Bundle Identifier and push certificate... aps-environment entitlement error
I've read Where does xcode take application's Identifier from? , XCode bundle identifier formatting from {PRODUCT_NAME} , and loads more but...
I'm trying to get push notifications going and getting the dreaded
"Error Domain=NSCocoaErrorDomain…

JulianB
- 1,686
- 1
- 19
- 31
70
votes
5 answers
Firebase: how to generate a unique numeric ID for key?
I need numeric IDs for human readability. How do I get it in Firebase?
I want numeric ID for keys, e.g. "000000001", "000000002","00000003","00000004".
The reason I need it is because these IDs will become the permanent object ID both online and…

Ivan Wang
- 8,306
- 14
- 44
- 56
68
votes
9 answers
git push rejected
I give up!
Whenever I try to push I get a stupid:
! [rejected] master -> master (non-fast forward)
error: failed to push some refs to 'git@github.com:companyX/projectX.git'
Our team has a new git setup. Instead of making private branches I…

Andriy Drozdyuk
- 58,435
- 50
- 171
- 272
68
votes
9 answers
git push >> fatal: no configured push destination
I'm still going through some guides on RoR and I'm stuck here at Deploying The Demo App
I followed instructions:
With the completion of the Microposts resource, now is a good time to push the repository up to GitHub:
$ git add .
$ git commit -a -m…

levelone
- 2,289
- 3
- 16
- 17
64
votes
4 answers
Do you push every single commit?
I would like, if someone could give me more detail in working with git and remote repositories. I haven't worked with remote repositories, yet.
To the local repository you commit smaller changes that may not be too world-shattering. What is pushed…

rynd
- 1,865
- 5
- 22
- 24
63
votes
16 answers
Unknown SSL protocol error in connection
I want to push my commits to a Bitbucket repository but this error occurred:
Fatal: unable to access
'https://myUsername@bitbucket.org/myUsername/myRepository.git/':
Unknown SSL protocol error in connection to bitbucket.org:443

b24
- 2,425
- 6
- 30
- 51
63
votes
11 answers
git unpack error on push to gerrit
On push of a new branch to a gerrit server we encounter the following error:
de@roma:~/git-hate/www$ git push origin landingpage
Counting objects: 149, done.
Delta compression using up to 2 threads.
Compressing objects: 100% (73/73), done.
Writing…

edlerd
- 2,145
- 1
- 16
- 24
58
votes
18 answers
git push not send changes to remote git repository
I am making changes to some file in my local git repository and then want to send the changes to the remote git repository from which the local was cloned via ssh.
After run "git commit -a" on my local side, to send the changes to the remote, I…

Tim
- 1
- 141
- 372
- 590
57
votes
2 answers
Alternative ways to push view controllers with storyboard programmatically
I'm looking for alternative ways to push view controllers instantiated on storyboard programmatically.
I've actually found two ways, that I use to go to the next view, but also to go back to the previous:
using pushViewController:
UIStoryboard…

yassassin
- 3,185
- 6
- 28
- 31