parse exception convert json to object Zend-studio - github

When i'm trying to connect to my Git-hub repository with Zend studio 10.0 shows this message:
" parse exception converting JSON to object "

One solution is to simply use the "File" -> "New Project from Git" option instead of the "New Project from GitHub" option. You can then just paste in the URL for the project (which is easy to copy from GitHub) and enter your GitHub user name and password and it will clone the repo in, I'm guessing, exactly the same way that the "New Project from GitHub" process would have done.

Related

Save project to Githyb probleme

I just finished my project in netbeans I want to save it in github but whene I click in push it's display to me "Error writing request body to server" I dont know wher's the probleme exactly
I want to save a netbeans project to github and git command show me "Error writing request body to server"

invalid path to command line tools

I try to "create a new project from version control" in ij, and I have done this (same repo) before, but this time I get the above error and "clone" button doesn't get active. why and what can I do? it gives me a link to 'fix path'
I try to create a new project from version control, it must clone the project from the repo of github that I've cloned before and it worked fine. but today I got the error "invalid path to command line tools" and a link to 'fix path'. how can I fix this issue?

TF200016: The following project does not exist: ProjectFirstPartOfTheName. Verify that the name of the project is correct and that the project exists

I configuring repository permissions by usin tf git permission tool in this way:
tf git permission /deny:CreateBranch /group:"[%1]\Contributors" /collection:https://dev.azure.com/<CompanyName>/ /teamproject:"%2" /repository:%3
It works fine but when the project has spaces in the name it fails with the error of the subject. I attempted with (for the first parameter, %1):
"Project Name"
Project%20Name and "Project%20Name" as it appears in the browser's address bar.
No matter what I do the error is the same, it only recognizes the first part before the blank:
"TF200016: The following project does not exist: Project. Verify that the name of the project is correct and that the project exists on the specified Azure DevOps Server."
I do not use spaces in the names of new projects but this one already existed and I would like to keep as the teams know it.
Thanks in advance.

Push eclipse project to GitHub with EGit

I am successfully pushing my project to GitHub using EGit. My repository is called HelloWorld. My project in eclipse is also called HelloWorld. My problem is when i push the project it is upload the project under the folder HelloWorld. So the result is the repository HelloWorld then the folder HelloWorld and the the src folder. To be more understandable here is the link of the project. I want under the repository HelloWorld to have the src folder. How can I achieve that?
The key lies in when you create the project in eclipse.
First step, you create the Java project in eclipse. Right click on the project and choose Team > Share>Git.
In the Configure Git Repository dialog, ensure that you select the option to create the Repository in the parent folder of the project..
Then you can push to github.
N.B: Eclipse will give you a warning about putting git repositories in your workspace. So when you create your project, set your project directory outside the default workspace.
Simple Steps:
-Open Eclipse.
Select Project which you want to push on github->rightclick.
select Team->share Project->Git->Create repository->finish.(it will ask to login in Git account(popup).
Right click again to Project->Team->commit.
you are done
I use these Simple Steps when I already have committed locally a new project:
Open github.com and sign in and create a new repository.
Copy URL of the new repository.
Open Eclipse.
Select Project which you want to push on github->rightclick.
select Team->share Project->Git-> "push branch '' ...".
Follow the wizard until it finishes.
I have the same issue and solved it by reading this post, while solving it, I hitted a problem: auth failed.
And I finally solved it by using a ssh key way to authorize myself. I found the EGit offical guide very useful and I configured the ssh way successfully by refer to the Eclipse SSH Configuration section in the link provided.
Hope it helps.
If you ever face an authentication issue in any IDE - Eclipse, sts, etc. Simply while creating a remote repository select ssh protocol it won't ask you any username or password. (But will create a file ed25519 on your system which will be having an ssh key). Now you can push or do other activities using IDE without having any authentication issues.
In case of Git bash use command $ssh-keygen (ask for file give proper file path)
suppose you give name as y.pub.
Run the command $cat y.pub
copy the ssh key(starting something as ssh-rsa...) and paste in GitHub(opened in browser your remote repository)
now type command $ssh -t git#github.com
If you get an error while using the above command changed the command to
$ssh-keygen -t ed25519 -c "your userid"
then open the file by using $cat ed25519.pub file
copy the ssh key & paste into Github. Now you are authenticated to perform the various operations.
The other option if you want to use https only is to generate pat(personal access token).go to github-go to settings-go to developer settings-go to personal access token.If you aready had token delete it else click on generate new token.Give anything in note.Click on repo (you can select multiple options too) click generate token.Copy the token and now in your ide instead of password use the token.I hope it will solve your problem.

Eclipse and git "Use the new project Wizard" extremely confusing

I have managed to use egit to clone one of my C++ github projects. When I get to the end there is a message which says "Select a wizard to use for importing projects". If I select "use the new project wizard" then I can't see any of my data - I get a project with some includes and that's it. I'm struggling to understand why this option exists? Do I have to import as a "general project". I'm not too familiar with eclipse and I find this very confusing.
Sometimes remote repository is empty and all you want is to create a new poroject start developing and then push your code.
If your remote repository allready have code in it just Fetch first then add code and finally push.