Redmine Project Repository Location - windows

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

Related

I cut/pasted a folder into a local repository mid-clone - the clone failed and the folder disappeared. Is the folder I pasted gone forever?

I wanted to put my local code into a GitHub repository.
I created a repo on GitHub and tried cloning with HTTPS.
The clone was taking a moment but the folder was created on my laptop so I decided to cut/paste my local code into the local repo folder.
Well, the clone ended up failing and the repo folder just disappeared, along with all of its contents.
The folder I added to the local repo also disappeared.
I can't even find it in the recycling bin. Is it gone forever?
Next time:
make sure you have installed gh, the GitHub CLI
create a repository locally where your code is
publish to GitHub (that will create the remote repository)
That way, no clone, no hazardous code migration.
The command to create the remote repository is (after a gh auth login):
gh repo create.
Inside a git repository, and with no arguments, gh will automatically create a repository on GitHub on your account for your current directory, using the directory name.

Pushing Laravel project to digitalocean

I created an Ubuntu droplet in digitalocean and installed Nginx, PHP and Mysql, I created bare git repository and connected to it remotely to push my local project, when I push my project it shows me that uploaded successfully but when I enter my server and access my project path the folder is empty.
I followed below guide link
https://devmarketer.io/learn/deploy-laravel-5-app-lemp-stack-ubuntu-nginx/
Like you say: your repository is a bare repository, therefore you only see data being populated in the .git folder itself.
You need to clone that bare repository to the folder you want your Laravel app to be installed. This way, your bare repository remains the remote (origin) repository, and your clone is the local repository (even though they are in the same "remote" server).

How to start new Git from scratch when old Git still there

I want to create a new empty repository with git. I cannot find a simple solution online that explains this step.
This documentation states "git-init - Create an empty Git repository or reinitialize an existing one" but then doesn't say which options are needed to make it empty:
https://mirrors.edge.kernel.org/pub/software/scm/git/docs/git-init.html
Is a --bare repository the same as an empty repository?
Problem:
I have two different projects with different repo's on github, but when I try to use Git (in Bash) after changing the directory to the new project, it keeps pushing with files from the old project.
I think the problem is that git is using the old repo files and thinks the new folder is just additional files perhaps? Basically I want to start from fresh. Can I just start from scratch on my new project with a new repo?
I have tried $ git init in a new directory, but then it just says: "Reinitialized existing Git repository in /home/user/new_project/.git/"
I tried: $ git remote set-url origin git#github.com:User/New_Project.git
but that just updates where it pushes my new project to, and then includes old projects files.
Please help a noob trying to figure things out the hard way 🙏🏼
Delete .git folder:
rm -rf .git
Then create new git repository:
git init
git remote add origin <remote-URL>
git add .
git commit -m "new clean repo"
git push --force origin master
create 1st project
make git init
create a remote repo for 1st project
link remote repo to 1st project
create 2nd project
make git init
create a remote repo for 2nd project
link remote repo to 2nd project
Git will push everything to its proper remote repo
Small hint from my side
git init : create empty repository and reinitialize an existing one
following link will give more information about different options can be used during git init ($GIT_DIR)
https://mirrors.edge.kernel.org/pub/software/scm/git/docs/git-init.html

How to check the URL of current git repository with TortoiseGit?

I am new to git and have currently switched from Bitbucket to Github, but have not yet deleted the Bitbucket repository. I have a folder in my computer, but am unsure whether that folder is from the github or the bitbucket repository. Is there a way I can check the URL of the repository with TortoiseGit, and if so how?
Go to your project folder and open the .git/config file. There you can see the remote urls.
Git is a decentralized version control system and, thus, can have multiple remote repositories for a working tree.
The configured ones can be seen in TortoiseGit settings -> Git -> Remotes (cf. https://tortoisegit.org/docs/tortoisegit/tgit-dug-settings.html#tgit-dug-settings-remote).
I think that in the 'fetch' dialog, there is a 'manage remotes' link.

Cloning Repository

I have installed GIT on VS2010
I am comfused with tools of GIT.
When clicking on:
GIT->Clone Repository
Does cloning repository means that we will upload files of the repository?
Is Commit tool the opposite way of cloning: uploading files in the repository?
Yeah, cloning mean you download the files of your repository.
Commit is a tool to save your modifications, but to upload file into your repository, you need to use the Push tool

Resources