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
❯ git checkout -b mine
❯ git remote add disroot git://
❯ git remote -v
disroot git:// (fetch)
disroot git:// (push)
origin (fetch)
origin (push)
❯ git branch mine --set-upstream-to=disroot/spacedrive
fatal: the requested upstream branch 'disroot/spacedrive' does not exist
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: 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"
edited by

1 Answer

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

    git remote add disroot

  2. you need to download the refs

    git fetch disroot

selected by

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

git remote set-url disroot git fetch disroot git branch mine --set-upstream-to=disroot/spacedrive git push --force -u disroot mine


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


Yes it does, thanks.

Contributions licensed under CC0