Questions tagged [push]

In distributed version control, push is the action of sending local changes to a remote repository.

5455 questions
57
votes
6 answers

Git push to live server

We have a website that has all its PHP/HTML/JS/CSS/etc files stored in a Git repository. We currently have 3 types of computers (or use cases) for the repository. Local developer: pull latest changes, make changes, commit to local repo, push to…
Petah
  • 45,477
  • 28
  • 157
  • 213
56
votes
3 answers

Array push as the first index PHP

I have an array that doesn't use the 0 index. The array starts from 1,2,3. So I would like to add to the array. I tried do array_push($array, "Choose City"), but this ends up at the end of the array, with array index 4 in this case. How can I set it…
Karem
  • 17,615
  • 72
  • 178
  • 278
56
votes
3 answers

How to only push to one branch in Hg?

I have a Hg repo with 3 branches in it, but two of them are inactive (since I have already merged them into my default branch). hg heads shows 3 heads, one for each branch, even though hg branches shows 2 of those branches as 'inactive'. When I try…
simon
  • 3,380
  • 2
  • 22
  • 23
55
votes
6 answers

Git pushing to a private repo

I have been working on my local on a web app and I was ask to push it to an empty(only read me file on it) private repo created just for this project. I'm new to git and I'm having trouble doing so. Can someone tell me what am I doing wrong? I…
irm
  • 4,073
  • 6
  • 28
  • 32
50
votes
3 answers

In Xcode 4 how do I add a remote GitHub repository to an existing local project?

The Git integration in Xcode 4 is very welcome however it seems to be a bit flaky when it comes to dealing with remote repositories. For clarity I'm using OS X version 10.6.7 and Xcode 4.0.2 (4A2002a). If I create a new Xcode 4 Project and accept…
jbjon
  • 1,247
  • 1
  • 14
  • 24
49
votes
3 answers

javascript push multidimensional array

I've got something like that: var valueToPush = new Array(); valueToPush["productID"] = productID; valueToPush["itemColorTitle"] = itemColorTitle; valueToPush["itemColorPath"] = itemColorPath; …
sinini
  • 1,403
  • 3
  • 19
  • 27
45
votes
8 answers

Broken pipe when pushing to git repository

I'm trying to push for the first time a code to my git repository but i get the following error: Counting objects: 222026, done. Compressing objects: 100% (208850/208850), done. Write failed: Broken pipe222026) error: pack-objects died of signal…
Deadlock
  • 799
  • 1
  • 7
  • 15
44
votes
5 answers

ADB push multiple files with the same extension with a single command

I want to push some files of the same type (.img) to the /sdcard partition of the phone with a single command. But the wildcard does not work: adb push *.img /sdcard/ Is there any way I can achieve that?
john
  • 451
  • 1
  • 4
  • 4
43
votes
2 answers

Show progress of Mercurial push/pull

Is it possible to get Mercurial to show progress of long-running push or pull operation? Google tells me basically "no", but does somebody know better? I was expecting something like hg pull -v...
mmiika
  • 9,970
  • 5
  • 28
  • 34
43
votes
8 answers

Push Notifications when app is closed

Do you know if is it possible to receive notifications from google cloud message when the application is fully closed? I know if it's open or in background yes, but can it be programmed any way in order to receive them? EDIT: I continue without…
Dani Andújar
  • 1,116
  • 1
  • 12
  • 15
42
votes
4 answers

Preview a Git push

How can I see which commits are actually going to be pushed to a remote repository? As far as I know, whenever I pull master from the remote repository, commits are likely to be generated, even if they're empty. This causes the local master to be…
Marcus
  • 5,104
  • 2
  • 28
  • 24
41
votes
4 answers

iPhone: how to remove badge after Push Notification?

What is the code to remove the badge on my app's icon? When I receive push, I need to remove it when a button is clicked!
obliviux
  • 413
  • 1
  • 4
  • 4
41
votes
4 answers

git error when trying to push to remote branch

I've cloned repository A's master branch from git and created my own branch called Li. I've made some changes a while ago and pushed the contents of local Li to remote Li. Now I've pulled some updates from remote master to my local master branch and…
user429400
  • 3,145
  • 12
  • 49
  • 68
39
votes
3 answers

iOS - Ask to enable push notifications after initial decline

I would like to know if it's possible to force the "XXXXX would like to send you push notifications" popup from within an app, after an initial decline. The use case is as follows: The user installs the app, gets the alert about push…
Joel
  • 15,654
  • 5
  • 37
  • 60
39
votes
5 answers

How does RSS reader know that a feed is updated?

Just learning about this via youtube but could not find answer to my question of how reader knows there is an update. Is it like a Push in blackberry?
Mith
  • 391
  • 1
  • 3
  • 3