w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
How to solve the "Push rejected, no Cedar-supported app detected" on Heroku when pushing a Django project?
I'm pretty sure that correct the spelling of requirements.txt will fix this. Then on to the next problem of adding the postgres db and PROMOTING it. https://devcenter.heroku.com/articles/heroku-postgresql.

Categories : Django

Github "Updates were rejected because the remote contains work that you do not have"
This happens if you initialized a new github repo with README and/or LICENSE file git remote add origin [//your github url] //pull those changes git pull origin master //now, push your work to your new repo git push origin master Now you will be able to push your repository to github. Basically, you have to merge those new initialized files with your work. git pull fetches and merges for you. You can also fetch and merge if that suits you.

Categories : Github

Git error on committing new repository ([remote rejected] master )
OK, here we go. There are three apparent issues with your git setup. Thanks to @Cupcake for pointing out the third one. From most important to least important: You try to push to a non-bare repository. This is not recommended and actually an error with recent git versions. You should push to a bare repo. For further information let me refer you here: http://stackoverflow.com/a/18260792/2536029 You have set core.autocrlf to something other than false. This causes git to try to automatically convert line endings depending on the exact value of core.autocrlf, your environment, the files in question and previously applied conversions. Some argue that this is useful in scenarios where some contributors use windows and others use UNIX, but in my opinion it more often causes trouble because

Categories : GIT

Migrating a Gerrit project into a different instance of Gerrit
I've been moving a lot of git projects around lately and although I've mostly been moving from Gerrit (due to department fiat, Gerrit's a fine choice IMO) this should work the same and is relatively easy. Moving the Gerrit history, however will be more difficult. Here's how to move a repo: Clone the project from the current source. Create the new gerrit project. In your local clone of the project you want to move, add the new project location as a new remote: git remote add NewGerrit ssh://NewGerritServer:29418/NewProject push to the new remote. To push the full history do: git push --all NewGerrit You can also set it to automatically track the new repo by adding a -u flag: git push --all -u NewGerrit Migrating the Gerrit database stuff is a much bigger job and honestly I'd sugge

Categories : GIT

NetBeans & Git: shortcut for pushing to remote
At Tools|Options|KeyMap you can set a shortcut for the action. NB 7.4 will also allow you to put such common action to the toolbar - see http://wiki.netbeans.org/NewAndNoteworthyNB74#Versioning

Categories : GIT

Set separate remote for pushing and pulling only subfolder
One approach is to set up 3rd repository containing the code common for both projects, then use that repository as submodule in both repository A and B. However if I understand your question right, the whole A repository is that "common" code. In that case there's no need in 3rd repository and you can simple add A as a submodule inside B.

Categories : GIT

roll back remote repo after pushing
Assuming no-one has pulled your "bad" changes yet, force the push: git push -f The server rejects the normal push, because it would cause the serverside repo to lose changes (your mess). In this case, this seems to be what you want, so go ahead and force it. Just be aware that forcing a push is in general a dangerous thing to do, because you can lose history. It can get messy if other users has already pulled your changes, because then they will have to resolve the conflicts in a meaningful way before they can push. So if you have any collaborators on the project, be sure to check if they have already got your copy of the code, and if they do, warn them about what you are about to do and make sure they pull the right version as soon as it is available.

Categories : GIT

Github- repository is on remote but not found when pushing
Can you paste the $cat .git/config output here for reference. Sometimes it is better to remove the remotes that are misbehaving from there and re-add it using the git remote add command again.

Categories : Github

Local Git branch not pushing successfully to remote
try this: git push -u origin <your_local_branch_name>:<your_remote_branch_name> -u flag makes your local branch trackable, so next time it will know where to push if you just do git push origin.

Categories : GIT

Prevent pushing into a wrong remote branch
Wow, it's hard to do this accidentally. Once you do git push --set-upstream origin a-local:a-remote to make it tracking (and the same for the other pair), you can push with just git checkout a-local; git push or git-push a-local and I should say you'll have to try hard to accidentally push to a wrong branch…

Categories : GIT

Changing to remote branch before pushing local commits
You will not. This is how distributed version control systems work. Read more about it here: http://git-scm.com/book/en/Getting-Started-About-Version-Control

Categories : GIT

Git short cut for adding, commiting and pushing to a remote repo
IMHO This will be possible, only if You are the only programmer contributing You are using only one local repository to push changes to remote And this takes away the flexibility and power git gives you. If so, you can use 'alias' So something like this can do the job. $ gitFunction() { > git add . > git commit -m "$1" > git push origin } $ alias git-all="gitFunction" $ git-all 'commit message' //Will do everything for you. Or Add this to your .git/config file. [alias] sync = "!sync() { git add . && git commit -m "$1" && git push $2; }; sync" Later you can use $git sync 'commit message' remote_repo But you shouldn't be doing this!! Why? Though off the topic, I would love to quote Principle of sufficient reason Nothing is without a

Categories : GIT

git push command for pushing a local commit to a different remote branch
I was able to play with this a bit more and have a better solution. If I read you correctly, the remote branch "jb_mr2" already exists. From the local branch with the commits run this: git push ssh://company.com:29418/platform/vendor/com-proprietary/ship/ftm 72bc75e409e50dcad29bd790b4b6478dc6668f12:jb_mr2 If the remote does not exist: git push ssh://company.com:29418/platform/vendor/com-proprietary/ship/ftm 72bc75e409e50dcad29bd790b4b6478dc6668f12:/refs/heads/jb_mr2

Categories : Android

deploying to heroku error "! [remote rejected] master -> master (pre-receive hook declined)"
It seems there is an issue with nested comments being poorly handled by the sass compiler during asset precompilation. http://www.madflanderz.de/madblog/archives/307/heroku-rake-assetsprecompile-failed-invalid-css/ Removing nested comments in CSS (// lines within /* */ blocks) should solve the issue. This may be harder with third-party CSS libraries you've included in your project. In that case an upgrade of sass-rails could help (but this is something I've never tried).

Categories : Ruby On Rails

Why do I get error: RPC failed; result=52, HTTP code = 0 fatal: The remote end hung up unexpectedly when pushing to github?
Now it is working! I didn't even change a thing. This kind of an error ' result=52 ' is an error with github itself. Github.com was going down and when I tried uploading I got the error. Now the site is back up and I can commit like normal.

Categories : GIT

Remote EJB Client Eclipse
I've managed to make it work. I don't know if this is the correct way but in the "helloworldprojectclient" if you set the buildpath's Project tab and add HelloWorldProject then on the Libraries tab add appserv-rt.jar and javaee.jar (both from glassfish lib folder) then the client should look like this: package helloworldprojectclient; import javax.naming.InitialContext; import helloworld.ejb.HelloWorld; public class HelloWorldClient { public static void main(String[] args) { try { InitialContext ic = new InitialContext(); HelloWorld thing = (HelloWorld) ic.lookup("helloworld.ejb.HelloWorld"); System.out.println("It seems it runs: " + thing.outputHelloWorld()); } catch (Exception e) { e.printStackTrace(); } } }

Categories : Eclipse

Eclipse Remote debugging with jboss
What you are asking is not specific to either Java EE or JBoss 4.x - you can debug any Java process in case you specified the remote debugging runtime parameters when starting the JVM. In your setting the -Xdebug parameter is missing, so your line would be: JAVA_OPTS="$JAVA_OPTS -Xdebug -Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=n" Now it should be able to connect, in case you are using the correct host and your specified port 8787. In case it's still not working, it's most likely a firewall issue blocking the port.

Categories : Java

Remote debug JBoss AS 7.1 from Eclipse Indigo
You will need to start JBoss with a few extra options to the JVM. You can set these either in standalone.xml, or via the JAVA_OPTS environment variable. The options look basically the same, but for this post I will use JAVA_OPTS. Read this post from the JBoss Community forum if you want to use standalone.xml to configure the JVM parameters. Add this line to your existing JAVA_OPTS: -Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=n The port number (8787) above must match your Eclipse setup (see below). Finally, you will need to tell Eclipse how to connect to the remote process. In Eclipse, click the Debug button’s drop-down arrow and select “Debug Configurations”. In that dialog, navigate to “Remote Java Application” and click the “New” but

Categories : Eclipse

Eclipse on-click deploy to remote Tomcat
I preferred you, that you must use Tomcat6. until you get the Experience. or you update your java version, or JDK an JRE. . when you complete these step go to your Eclipse Project. right click on your project name, Run as > run on server.. . that's it.. You will see the result..

Categories : Eclipse

Java remote debugging, eclipse can't stay connected
Normally on the listening process I use: -Xdebug -Xrunjdwp:transport=dt_socket,address=4044,server=y,suspend=n You have to start the process correctly E.g. for tomcat JPDA_OPTS="-agentlib:jdwp=transport=dt_socket,address=4000,server=y,suspend=n" catalina.sh jpda start using a wrapper as tanuki: http://wrapper.tanukisoftware.com/doc/english/prop-java-detect-debug-jvm.html If you read it The Wrapper has several features which are designed to detect when a JVM has frozen, or otherwise become unstable. Normally these features should all be left enabled. However, when a JVM is connected to a debugger, it is common for the JVM to intentionally be frozen as various debugging operations take place. In these cases, the Wrapper would normally think the JVM was f

Categories : Java

eclipse kepler "Cannot install remote marketplace locations"
I figured out finally that: Avira Anti-Virus Software was blocking the network requests by eclipse. After deactivating "enable web protection" in the Anti-Virus, the stupid Eclipse was able to update itself.

Categories : Eclipse

How to convert a remote branch into a local one in Eclipse using Bitbucket?
You should follow the section "Pulling New Changes from Upstream Branch ": a git pull is a fetch + a merge. Right-click on a project in the Package Explorer and select Team > Pull or right-click on a repository in the Git Repositories view and select Pull to pull new changes from the upstream branch your local branch is tracking. The section "Fetch and Pull" of the Egit tutorial says as much: When cloning remote repositories, Git creates copies of the branches as local branches and as remote branches. A Fetch operation will update the remote branches only. To update your local branches as well, you will have to perform a Merge operation after fetching.

Categories : Eclipse

"An existing connection was forcibly closed by the remote host" in eclipse
Check to see if you have two versions of adb installed. Eclipse installs one and perhaps HTC Sync installed another. They might be different versions. You'll have to do some path trickery to get both apps to use the same version of adb. You can search for ADB in your path by entering the following in a command prompt: where adb.exe

Categories : Android

How to deploy web project on remote tomcat server outside Eclipse with .jar files in it
You need to create jars for your project B & C an place them under the WEB-INFlib of your project A in tomcat webapps directory. Or if you don't create jars for your project B & C then copy the classes with proper package structures in WEB-INF/classes. You can always check what is going wrong in Tomcat/logs directory. A piece of advice: Familarize yourself with use of build tools such as maven and ant. I would recommend you to learn about maven, its dependency management, and build plugins. You can really make your life easier with such tools.

Categories : Java

Netbeans & Eclipse hang when I attempt remote EC2 debugging via Xdebug
This feels like a networking issue to me. Port 9000 may not be accessible. The quickest way to test is to telnet to port 9000 on the remote system (if you have a telnet client installed that allows you to specify which port to telnet to). If the telnet attempt times out or is closed by the remote system you will see the error and this verifies that there is a networking issue. I would check /etc/services to make sure that port 9000 is not reserved for use of something else. If port 9000 exists and is uncommented then something else is using the port and that services does not know how to respond to your request so it hangs. I would do a netstat (lookup params to see "all" listening ports) and make sure the remote system is listening on port 9000. If you don't see port 9000 then the re

Categories : Eclipse

eclipse-how to add existing source folder from remote network drive
Close eclipse before shutting down, restart eclipse after resume. No, really - Windows disconnects remote drives during sleep: network adapter is suspended, thus disconnecting from the network, thus no more remote drives. During resume, the network stack takes more time to resume than the remote drive stack, thus no more remote drive. I think you can mark the remote drive to be available when offline (http://windows.microsoft.com/en-au/windows-vista/working-with-network-files-when-you-are-offline), but I've never used this feature of Windows.

Categories : Java

Facing issues while running remote java program through RSE pluggin in eclipse
I would fire up Wireshark to examine exactly what is going over the wire. As it is, you are flying blind in a snowstorm. With Wireshark, you might still be in a snowstorm but at least you won't be flying blind.

Categories : Java

eclipse remote project with sftp - dltk indexing results in 'no more sessions' error
I was able to fix this issue by doing two things: set up ssh to use multiplexing (see http://en.wikibooks.org/wiki/OpenSSH/Cookbook/Multiplexing) in the virtual machine Upgrade eclipse to Kepler 64Bit release (much faster and more stable in Windows 7) with manual installation of PDT feature (using Zend PDT is a waste of time) This also works with Java7! Now I have completely indexed projects and can use code-completion!

Categories : Eclipse

Remote gradle debug on build.gradle file from Eclipse IDE
It's a known limitation that Gradle build scripts can't currently be debugged in IDEs. I'm not aware of the specific error though. Usually the debugger just doesn't stop at the breakpoint (but it will stop at breakpoints for user-defined plugin/task classes and Gradle classes).

Categories : Eclipse

Gerrit and Git workflow
Push your changes from a different branch than the one you're tracking on the remote. That is, only update your local master by pulling, and push only from non-master branches. Workflow something like: git co master # switch to master branch git pull # update from origin git co -b work # make a working branch ... # work work work git commit -m "My #1 commit message" # commit git push HEAD:refs/publish/master # push to gerrit for publishing on master ... # wait wait wait git co master # switch to master branch git pull # update... etc, etc etc.

Categories : GIT

Push on gerrit with windows
Just download it from : http://www.example.com/r/tools/hooks/commit-msg and then copy it to your .git/hooks folder. Or you can download it from gerrit review -- Update -- If you add the commit hook after making the commit locally, which is probably the case, you need to amend your last commit. Simply amending the last commit without making any real change will add the Change-ID to your log message. git commit -a --amend git log -1 // this is to check that the Change-ID is present in your log message git push origin HEAD:refs/for/master -- Update 2 -- If you are like me and have a lot of projects at create clones every now and then you might want to setup your git installation so the commit-msg hook is installed by default. You can do this by copying the commit-msg to your git templ

Categories : Windows

How can I use a LifecycleListener in a gerrit plugin?
I gathered that LifecycleListeners can't be used in combination with AutoRegistration. Here's why: In order for the @Listen annotation to work, the @ExtensionPoint interface which is implemented by the class (in this case LifecycleListener) must have a DynamicItem, DynamicSet or DynamicMap definition in a Guice module, which isn't the case for LifecycleListener.

Categories : Java

How to check out of gerrit and not git origin
If you are using gerrit you should probably have access to the web interface, go there and you will see your change. Another option if you have gitk is: gitk --all `git reflog | cut -c1-7` Search for your deleted branch over there and you can check it out using the hash.

Categories : GIT

set up gerrit with http authentication
Gerrit it expecting the authentication to be provided. It does not allow anonymous access when you use HTTP authentication. For this to work you need to authenticate at the root and your Location block should look like this: <Location "/"> AuthType Basic AuthName "Gerrit Code Review" AuthBasicProvider file AuthUserFile /usr/local/apache/passwd/passwords Require valid-user </Location>

Categories : Apache

Custom change-id in gerrit
No, you can't. You need to use Gerrit's own Change-Id format. You can have one autogenerated for your commit by installing the commit-msg hook script included with Gerrit. More information is available at the Gerrit Change-Ids documentation.

Categories : GIT

Gerrit - Replicating to github
Create a group "Github Export" and give this group read access only to the repos you want to export (or explicitly deny read access for All-Projects, which is kind of a meta project carrying only settings inherited by other projects). When you then set the authGroup = Github Export, only repos to which this group has access are exported. Please keep in mind that since Gerrit 2.5 the group has to be visible to all members (it's a setting of the group), caused by extracting that functionality into a plugin. See the Gerrit list archive for that. One other idea might be to use this not yet merged patch, which allows you to set patterns for what repos you want to replicate to a certain remote. The last option would be to simply ignore this error message. Replication of other repos can still

Categories : Github

How to push Drafts to Gerrit?
use this command: git push --receive-pack="git receive-pack" origin {commit SHA-1 or HEAD}:refs/drafts/{branch} A general rule to push into gerrit, branch = master: git push origin <a_local_branch_name or specific_commit or HEAD>:refs/for/master A general rule to push into gerrit as DRAFT, branch = master: git push origin <a_local_branch_name or specific_commit or HEAD>:refs/drafts/master

Categories : GIT

How to rewrite history on gerrit?
When rewriting history, you would not push for review (don't push to refs/for/*). You need to push directly to the raw repository (refs/heads/*). This means you will need permissions to bypass review in Gerrit. I would recommend just giving yourself permissions temporarily and removing them once this is done, so you don't accidentally bypass review in the future. You will also need to run the git push with the -f flag to tell git to rewrite history.

Categories : GIT

What exactly do button "Abandon Change" in gerrit?
There is some documentation regarding the abandon option for command review. http://gerrit-documentation.googlecode.com/svn/Documentation/2.5/cmd-review.html But essentially abandon abandons the change, so it can no longer be committed to the branch unless it is restored. The change will no longer be counted as an open review, when it is abandoned. Cheers.

Categories : GIT

Is Gerrit blocking my Git pre-receive hook?
But I interpreted this to mean that Gerrit doesn't use Git hooks to execute its functionality. Instead it provides its own behavior in addition to Git hooks. Is that true? No. Gerrit doesn't run git hooks. There is no other server/service to run the hooks. Gerrit uses jgit to handle all git operations, and does not call the standard hooks. So operating on the assumption that Gerrit clobbers Git hooks then what can I implement that will block a push? There are a couple options. See the hooks documentation at http://gerrit-documentation.googlecode.com/svn/Documentation/2.6/config-hooks.html - here at $DAYJOB, we use a patchset-created hook to inspect the push and review it with a -2 score if something is wrong. This still lets the push go through, but blocks it from being mer

Categories : GIT



© Copyright 2017 w3hello.com Publishing Limited. All rights reserved.