DEAR PEOPLE FROM THE FUTURE: Here's what we've figured out so far...

Welcome! This is a Q&A website for computer programmers and users alike, focused on helping fellow programmers and users. Read more

What are you stuck on? Ask a question and hopefully somebody will be able to help you out!
+2 votes

What am I doing wrong? I've tried to follow the steps in this stackoverflow answer:

❯ git clone https://github.com/spacedriveapp/spacedrive
❯ git checkout -b mine
❯ git remote add disroot git://git.disroot.org/hirrolot19/Jedi_Archives.git
❯ git remote -v
disroot git://git.disroot.org/hirrolot19/Jedi_Archives.git (fetch)
disroot git://git.disroot.org/hirrolot19/Jedi_Archives.git (push)
origin  https://github.com/spacedriveapp/spacedrive (fetch)
origin  https://github.com/spacedriveapp/spacedrive (push)
❯ git branch mine --set-upstream-to=disroot/spacedrive
fatal: the requested upstream branch 'disroot/spacedrive' does not exist
hint:
hint: If you are planning on basing your work on an upstream
hint: branch that already exists at the remote, you may need to
hint: run "git fetch" to retrieve it.
hint:
hint: If you are planning to push out a new local branch that
hint: will track its remote counterpart, you may want to use
hint: "git push -u" to set the upstream config as you push.
hint: Disable this message with "git config advice.setUpstreamFailure false"
by
edited by

1 Answer

+1 vote
 
Best answer
  1. git://git.disroot.org/hirrolot19/Jedi_Archives.git doesn't seem to exist. The website only has a URL for https://git.disroot.org/hirrolot19/Jedi_Archives.git

    git remote add disroot https://git.disroot.org/hirrolot19/Jedi_Archives.git

  2. you need to download the refs

    git fetch disroot

by
selected by
0

I want the remote branch to be called spacedrive but it calls it mine

git remote set-url disroot https://git.disroot.org/hirrolot19/Jedi_Archives.git git fetch disroot git branch mine --set-upstream-to=disroot/spacedrive git push --force -u disroot mine

+1

git push -u disroot local_branch:remote_branch does this not work?

0

Yes it does, thanks.

Contributions licensed under CC0
...