Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to push Fossil local repository to remote hosting

It would be great if you could help me with one thing.

I'm using Fossil as my version manager. Using this on my PC is not a problem but when I try to push it to remote repository I can't.

Here's the thing:

When inside folder with my repository I type

fossil push https://chiselapp.com/user/sebatbg/repository/nres

I get info that: Error: Wrong project

When I type

fossil push https://[email protected]/user/sebatbg/repository/nres

It asks for my password but when I enter it fossil says that Login failed I tried both my pass to chisel app and for specific repository but result is the same.

Could anyone tell me step by step how to do the push?

Thank you

like image 732
SebastianM Avatar asked Aug 31 '25 22:08

SebastianM


2 Answers

I had a similar problem. I had cloned a remote repository, but could not push to it. I could solve it by adding the username to the remote url

remote-url https://{username}@chiselapp.com/user/{chiselab-user}/repository/{repository-name}

you are then prompted for the password of the remote repository.

like image 123
Bernhard Avatar answered Sep 03 '25 22:09

Bernhard


Fossil assigns a unique ID, called the "project ID", to each new repository. The error message "Wrong project" means that you've got different repositories locally and remotely, that their project-IDs don't match.

The only way I know to publish an existing local repository on Chisel is to upload said repository, and then set the remote-url of your local repository to the Chisel URL, either explicitly or by pulling from the URL.

like image 41
Martijn Avatar answered Sep 03 '25 22:09

Martijn