How to git push branch back to repo

I’ve cloned my repo locally Overview - rpms/gparted - with:

$ git clone gparted-fedora-rpm

I composed by update on a local branch

But for the life of me I can’t work out how I am meant to push a local branch back to my forked repo or find any working instructions on how to do it.

$ git push epel7-update
fatal: Authentication failed for ''

$ git push epel7-update
ssh: connect to host port 22: Connection timed out
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

I think you have to use SSH authentication (this bug report might be relevant). You might need to add your SSH key to your Fedora Account. Also, they’ve just completely overhauled the whole account system, so some of the documentation might be out of date.


If things didn’t change recently, you need to be in the packager FAS group in order to push to by using SSH.

Can you try these instructions? You can skip spectool and mockbuild parts and jump to the commit and push part if you want.


Thank you. Using the “Using fedpkg anonymously” instructions I have
successfully cloned the repo afresh, made my edits and pushed back to
my remote repo.

fedpkg clone --anonymous ...
fedpkg push

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.