I'm trying to clone the git repository that was created initially using mac. I'm getting the below error while cloning on Windows machine.
error: invalid path build\ios/Runner.build/Release-iphoneos/Runner.build/dgph
P.S: I'm able to clone it on my mac machine with no problem.
Tell the owner of the repo to delete a folder named build/ios. Thats what i did to solve it on my hand.
Related
I work with a new Windows installation and the same folder on my network share (NAS System).
After installing git and tortoisegit I tried to connect to the git repository, but I always get this error. What has changed is the server and not the user.
I have run
git config --global --add safe.directory '*'
But that changes nothing.
How can I fix this?
Where can I set the variable
GIT_TEST_DEBUG_UNSAFE_DIRECTORIES=true
This happens when a repo was cloned by a different user than your current user. In my case, I've encountered this issue after reinstalling windows, but using previously cloned git repositories (on a separate partition).
Right-click repo folder, properties, security, advanced.
Click "Change" on the Owner line.
Find your user (advanced..., find now, select your user). Confirm.
On the change screen, enable "Replace owner on subcontainers and objects".
That should fix the error.
If you intend to use more than one user on a cloned repo, then I'd follow git instructions to add the exception.
I get the following error when trying to add a repository.
Uncaught Exception: [RuntimeException] Failed to execute git clone --mirror 'git#bitbucket.org:doppy/doppy.git' '/home/composer/.composer/cache/vcs/git-bitbucket.org-doppy-doppy.git/' Cloning into bare repository '/home/composer/.composer/cache/vcs/git-bitbucket.org-doppy-doppy.git'... Host key verification failed. fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists.
The repository is public and when I copy and run the command locally I don't get any error.
I guess this an issue on the packagist server itself with the bitbucket servers?
side note: yeah, I understand it is a silly repo. I fully intend to remove it when done testing and cleanup my own mess.
Feedback from composer user mailing list:
https://groups.google.com/forum/#!topic/composer-users/ciGcpehsvy4
I think the problem is we don't support git# connections to bitbucket as
we don't have an ssh key set up for them. Make sure you use the HTTPS
clone URL and that should work:
https://bitbucket.org/doppy/doppy.git
Cheers
I'm working off of an existing project that I have been committing and pushing to git. For a couple reasons, I had to change rails versions from 4.0 to 3.2.6 and use existing project files from a tutorial by downloading the files and replacing my local app folder with them.
Now I can't push to my existing repo on git that I have been working on.
If I try to commit, I get two errors:
error: pathspec 'origin' did not match any file(s) known to git.
error: pathspec 'master' did not match any file(s) known to git.
I tried to delete the local app folder, clone the repo and then replace all of the files with the 3.2.6 version app that I have been working on but I still get the same commit errors.
You can try to specify the full git push command:
git pull -u origin master
If it doesn't work, check if your remote declaration were altered in any way:
git remote -v
also, as show in this article, list references and branches:
git branch -avvv
git show-ref
check that you are in a branch, and not in a detached HEAD.
Make sure you don't have a branch named 'origin' (which would be confusing here)
As mentioned in this issue (for git svn, which isn't your case, but can still give interesting idea), trying to clone again the repo could lead to a non-corrupted .git folder, and the ability to push again.
Did you checked your git config file placed in
.git/config
in your project folder? You can find the details of your repo & branches information in this file.
Hope it helps.
I am new in ruby on rails. i want to save my demo projects on github can any one help me to setup git in RubyMine IDE. Step by Step Help will be appreciated. I tried every link but didnt help out.
I tried following link.
http://www.jetbrains.com/ruby/webhelp/using-git-integration.html
I'll give it a shot and try to break down that tutorial into steps.
First, make sure you have git installed on your machine, if not there is a great tutorial to install git on windows by Github.
This is just one way to do it, but in a general overview
First create a local git repository with RubyMine
Next, add untracked files to the git repository with RubyMine
After then, commit changes to the git repository with RubyMine
Then, you create a repository on Github and push to your remote repository on Github with RubyMine
You can also do all of these things from the Git Bash command line or Github for Windows GUI as well.
Hopefully this helps.
I have a rails app called appname and a remote repo at bitbucket with the same name. I would like to rename it to another_name.
So far, I've tried changing the remote repo's name to another_name, tried git push and it fails. I didn't try renaming the rails app & its folder though, being afraid that something might break.
What's the right step to do this?
If you rename your remote repository, you also have to update the remote's URL in your local git repo:
git remote set-url origin https://new-url-here
You can rename the local folder freely without any side-effects.
Thanks to Agis' answer, this is how I did it:
Rename the repo in bitbucket website to another_name.
Run git remote set-url origin git#bitbucket.org:myname/another_name.git (I'm using SSH instead of HTTPS)
Rename my rails' app local folder to another_name using Windows explorer.
Open up text editor, use the find all feature to find all the files that contain the old name & replace the old name with the new one.