I referred this link:
Connecting to GitLab repositories on Android Studio
In step 1, I am getting this
https://gitlab.com/pvijayalakshmi/eemployee.git
In step3, I am getting this error:
Remote URL test failed: Unable to find remote helper for 'https'
Why I am getting this error?
Please help me.
Any help would be appreciated.
You can follow a tutorial from Github, the principle is the same: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/
Basically, you need to add git to your local project, commit all the changes and set up remote repository URL:
git remote add origin remote repository URL
Then you push your code to the remote repository.
You can create a project to Gitlab manually, Get project repo URL &
Clone the project locally by using the terminal. One last step Now add your files in the local folder.
Related
I had some existing repositories on github and i deleted them, now i want to reshare my project into github the android studio but i get this error
JustJava2: failed with error: fatal: repository not found
How can i make android studio to create a new repository and push the project their?
First, please check the github repo URL in android studio.
Android studio -> click Terminal -> input the command git remote –v to check the github repo URL you were working.
Assume the URL you found is https://github.com/username/r2 (or https://github.com/username/r2.git).
Then create a new repo with the same name (such as r2).
Click + icon -> New repository -> name the same repo name (r2) as you found in above step -> Create repository.
If you have already create a new repo with different name or there is no output for git remote –v in the first step, you can set remote url in android studio terminal by git remote set-url origin <the new created repo URL>.
Now you can push your project successful in android studio.
Have you created a new remote repository and updated the local repos remote url? You can see how to change the remote url from the command line here
I tried to follow this tutorial:
https://www.londonappdeveloper.com/how-to-use-git-hub-with-android-studio/
But when I push it says
Push rejected: Push to origin/master was rejected
I suspect is it the reason of remote add?
if my project path is https://github.com/myusername/projectname
My remote add should add github.com/myusername/projectname.git?
First, check if you inited the local git repository in your project's root directory.
Then check if you correctly added your remote origin.
Check the remotes:
git remote -v
If the existing remote origin is wrong, then change it:
git remote set-url origin https://github.com/myusername/projectname.git
If it's not existing, add it:
git remote add origin https://github.com/myusername/projectname.git
Im using Android Studio with bitbucket. I changed the name of a repository and now when I try to push, I get the message Fatal error, repository not found.
How do I update the new repository name on my Android Studio Project to push correctly?
Thanks in advance.
See my example:
Go to terminal,
cd projectFolder
git remote -v (it will show previous git url)
git remote set-url origin https://username#bitbucket.org/username/newName.git
git remote -v (double check, it will show new git url)
git push (do whatever you want.)
See my example:
I simple changed the repository name accessing the config file inside the .git folder of my project. That solved the problem.
Update your git remote, changing the repo url: https://help.github.com/articles/renaming-a-remote/
Essentially I am trying to clone this android open source project to my desktop.
https://android.googlesource.com/platform/packages/apps/DeskClock/+/android-4.3_r1
I am not sure what exactly to do.
I have tried:
git clone https://android.googlesource.com/platform/packages/apps/DeskClock/+/android-4.3_r1
But I got the error:
fatal: remote error: Git repository not found
So how would I have to create a repository and clone it in there?
I am just completely unsure on how to do this locally in my desktop.
The following works for me :
git clone https://android.googlesource.com/platform/packages/apps/DeskClock/
This would download the entire repository.
Then you can checkout any branch you want.
You will want to clone the base repo:
git clone https://android.googlesource.com/platform/packages/apps/DeskClock/
Dive into the directory it just created:
cd DeskClock/
Then you will need to checkout that tag you want to start from
git checkout tags/android-4.3_r1
First, verify the Git Repository URL you use is correct, as given in the official Git repositories on android
In Android Studio, Go for File > New > Project from Version Control > Git.
Paste the Git Repository URL (Don't include git clone here, only the URL)
Click on Test to verify
This should work, as it did for me. This procedure is simple and straightforward.
See every time to check repository url I have to go under .git folder and check config for repository url.
Is there any way to check the project repository url from eclipse.
(June 2014) See the section "Remotes Repositories" or the EGit manual:
The "Remotes" node allows for browsing and editing Remote configurations.
Each Remote configuration has a name and either a Push Specification, a Fetch Specification, or both.
If a "Remote Configuration" node or any of its children is selected, the Properties view will show a summary of the Remote configuration.
You should see the url of the upstream repo in the Git Repositories view:
Note that, in command line, instead of getting in the .git/config directly, you can type:
git remote -v
Update October 2016, with Git in Eclipse:
As mentioned in the "Pushing to other Repositories", you also see the remote url with the "Configure push url" dialog:
From the package explorer view: right click on project you are working on =>Team=>Remote=>configure push to upstream.
You should now see the remove URL
Note: This is for Eclipse Neon release