Questions tagged [push]

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

5455 questions
39
votes
5 answers

How to change git ssh user for a remote push temporarily?

Is it possible to change the ssh user temporarly for a "git push remote master" without messing up with .git/config or "git remote", or using the whole remote url? [root@host gitrepo]# git push otheruser@remote master # this does not work, but how…
Andor
  • 5,523
  • 5
  • 26
  • 24
36
votes
2 answers

Django Push HTTP Response to users

I currently have a very simple web application written in Django, and I would like to implement something like a callback/push notification service in my application. For example: When one user(client) uploads a photo to the server, the server…
evkwan
  • 693
  • 3
  • 9
  • 17
36
votes
3 answers

java.lang.SecurityException: Requires VIBRATE permission on Jelly Bean 4.2

Since yesterday I have an issue on Android 4.2 when I receive push notifications it requires the permission even if i don't set it to vibrate Notification notification = new Notification(icon, notificationItem.message,…
Ste
  • 2,116
  • 7
  • 24
  • 24
35
votes
3 answers

Can I mark a branch as 'not going to push'?

I use named branches in Mercurial. In doing so I have created one branch called playground where I can try out various wacky experiments. I never intend to merge this branch into any others and I never want to push it to our main repository. Since…
George Mauer
  • 117,483
  • 131
  • 382
  • 612
35
votes
13 answers

Best way to "push" into C# array

Good day all So I know that this is a fairly widely discussed issue, but I can't seem to find a definitive answer. I know that you can do what I am asking for using a List, but that won't solve my issue. I teach a class in beginner C#. I have a PHP…
phunder
  • 1,607
  • 3
  • 17
  • 33
35
votes
2 answers

What is the difference between force push and normal push in git?

What is the difference between force push and normal push, and in what kind of situations should I force push in git? Is it good practice to force push into the master branch?
Sajith Herath
  • 1,002
  • 2
  • 11
  • 24
35
votes
10 answers

push() a two-dimensional array

I'm trying to push to a two-dimensional array without it messing up, currently My array is: var myArray = [ [1,1,1,1,1], [1,1,1,1,1], [1,1,1,1,1] ] And my code I'm trying is: var r = 3; //start from rows 3 var c = 5; //start from col 5 var rows =…
Jo3la
  • 405
  • 1
  • 4
  • 7
34
votes
23 answers

error: failed to push some refs to 'https://github.com/

this is my repository https://github.com/kiotie32/artbit-text.git when I do $ git push -u origin master remote: Repository not found. fatal: repository 'https://github.com/kiotie32/arbit-text.git/' not found I am on a Windows 10 machine. I had…
koeradoera
  • 507
  • 1
  • 4
  • 9
34
votes
5 answers

Mercurial says "abort: outstanding uncommitted changes", I don't want to commit

Scenario: Local repo, before I leave the office $ hg status M important/update1 M another/important/update2 M work/in/progress I want to commit and push important/update1 and important/update2, because I want to pull these files to my local repo…
Emanuel Landeholm
  • 1,396
  • 1
  • 15
  • 21
32
votes
4 answers

how to do a "flat push" in javascript?

I want to push all individual elements of a source array onto a target array, target.push(source); puts just source's reference on the target list. In stead I want to do: for (i = 0; i < source.length; i++) { target.push(source[i]); } Is there…
dr jerry
  • 9,768
  • 24
  • 79
  • 122
32
votes
4 answers

How to push a new folder (containing other folders and files) to an existing git repo?

I cloned a repository to my desktop machine using git clone sshurl. As expected, this created a folder in my desktop. Now, instead of a single file, I want to push a whole folder into git. For example, the folder that I cloned is named…
da32
  • 703
  • 1
  • 9
  • 18
31
votes
8 answers

iOS 8 enabled device not receiving PUSH notifications after code update

I recently upgraded one of my test iphones to iOS 8 and then upgraded the PUSH registration code as below (using xCode 6) -(BOOL)hasNotificationsEnabled { NSString *iOSversion = [[UIDevice currentDevice] systemVersion]; NSString *prefix =…
Zigglzworth
  • 6,645
  • 9
  • 68
  • 107
31
votes
8 answers

405 Method Not Allowed in NuGet Push

My NuGet server is throwing a 405 Not Allowed when I try to make a push. At least, thats what NuGet console says: Failed to process request. 'Method Not Allowed'. The remote server returned an error: (405) Method Not Allowed.. But when I look at…
tucaz
  • 6,524
  • 6
  • 37
  • 60
31
votes
6 answers

Jira issue number in git commit message

At our company we are moving from svn to git. For issue tracking we use JIRA from Atlassian. Now we want to enforce that every commit message contains an issue number (just like we did with svn). We have found the commit-msg hook which we use to…
meijuh
  • 1,067
  • 1
  • 9
  • 23
30
votes
2 answers

JavaScript Array Push key value

Ok, I'm going a little wrong here and I've already wasted an hour with this so hopefully one of you guys can help me. var a = ['left','top'], x = []; for(i=0;i
daryl
  • 14,307
  • 21
  • 67
  • 92