git clone from Azure DevOps failing - windows

I can clone from a git repository hosted in Azure DevOps on an Windows Azure VM, but I can't clone on my local Windows machine anymore (I used to be able to). So, I can rule out permissions issues on the repository.
I can clone git repositories from an internally hosted TFS.
git version: 2.21.0.windows.1
C:\Users\someuser\dev>git clone https://somOorg#dev.azure.com/someOrg/someProject/_git/someRepository
Cloning into 'someRepository'...
remote: TF401019: The Git repository with name or identifier someRepository does not exist or you do not have permissions for the operation you are attempting.
fatal: repository 'https://someOrg#dev.azure.com/someOrg/someProject/_git/someRepository/' not found
What could be the issue?

Related

The best way to automate deploy with bitbucket and a remote server (like digital ocean droplet) is with git hooks or pipelines?

I'm working on a project and now is the stage of deployment. I have a droplet in digital ocean and I could just clone my git repository from bitbucket inside this droplet and every time I do a git push to my remote repository I just do a git pull inside my droplet. I really don't want to do this every time, so I searched how could I automate this and I found two ways:
Git hooks
https://macarthur.me/posts/deploying-code-with-a-git-hook
In this link show how to do it (I don't like the fact the after clone my git repository from bitbucket I have also to remote link with my droplet)
Pipeline
Using BitBucket Pipelines to Deploy onto VPS via SSH Access I also find this way that I just do my git pull inside my pipeline
So here is my question: between these two ways, which one is better? The only thing that I don't like in the git hooks way is that every time I clone my bitbucket repository in a new machine, I have to add new remote repository to automate the deployment.

how to migrate git to gitlab migration with history (existing branches and tags)

I setup the new fresh GitLab server and i want to migrate my git repositories to gitlab server. I am following below steps but i am getting the error.
git clone --mirror Git repo URL
git remote add NEW-REMOTE Git Lab repo URL
git push NEW-REMOTE --mirror
finally it through an error
remote: fatal: Error in object
error: pack-objects died of signal 13
any help would be appreciated.
I believe gitlab has it's own git import tool built into the interface. When creating a new project you can import an existing git repo with it. Any history and branches will be included.
screenshot:

How do I deploy my site from github to heroku?

How do I deploy my site from github to heroku?
nbp-229-179:portfolio folder admin$ git push heroku master
fatal: 'heroku' does not appear to be a git repository
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
nbp-229-179:portfolio folder admin$
You might want to look into the GitHub integration, which will allow you to link your heroku app with github, not do any git pushes to heroku anymore but have your application automatically deployed.
With pipelines, you can automatically deploy a staging app with every push to the master branch, and manually promote the staging deployment to production.

clone a fork project in bitbucket

I am new to bitbucket. I am reading bitbucket documentation to learn it. I am at the fork concept. In fork documentation they provide a tutorial how to clone fork repository to my local machine. The tutorial is using the TortoiseHG Workbench. I have forked the external repo to my repo. Now I want to clone my fork repository using git bash because I already clone a git repo. I am unable to clone a fork repo using bit bash. Is fork repo only cloned using TortoiseHG Workbench or there is also a command for cloning.
I am using these commands for cloning my fork repo.
git clone git#bitbucket.org:user/myqoute.git
the error is
conq: not a git repository.
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
First, you need to fork (meaning make a clone on the BitBucket side) a Git repository, not a mercurial one like tutorials/tutorials.bitbucket.org.
Use for instance tutorials/online-edit-starter.
Then you can clone that fork with:
git clone https://bitbucket.org/yourUserName/online-edit-starter.git
(using yours BitBucket credentials: username and passwords)
Or:
git clone git#bitbucket.org:yourUserName/online-edit-starter.git
(provided you registered your public ssh key in that repo)
How to clone Repository ? (proposed by Rajesh Chaubey)
First take of fork repository:
git clone https://rajeshchaubey87#bitbucket.org/rajeshchaubey87/uispark.git
(copy your repository url.)
(then go to your master folder).
cd uispark
git remote add upstream https://animatorstar#bitbucket.org/animatorstar/uispark.git
git fetch upstream
git merge upstream/master
git remote -v
git status
git add -A
git commit -m "your comment here"

Redmine Project Repository Location

I have redmine set up using bitnami on windows I created a project and added a repository by location successfully. Now I'm trying to clone this via redmine,
ex
git clone http://localhost/git/myproject
or
git clone http://localhost/redmine/git/myproject
The repository of the project is located in the htdocs\git\myproject folder, but when I try this it says repo not found. What is the link for redmine repos, or do I have to move the local repo elsewhere on the server to work?
I'm not sure about git, but for Mercurial you need to insert the local path of the repository. It looks like that also the case for git. So you'll need to set the repository to /htdocs/git/myproject

Resources