How to git push branch back to src.fedoraproject.org repo

I’ve cloned my repo locally Overview - rpms/gparted - src.fedoraproject.org with:

$ git clone https://src.fedoraproject.org/fork/mfleetwo/rpms/gparted.git 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 https://mfleetwo@src.fedoraproject.org/forks/mfleetwo/rpms/gparted.git epel7-update
fatal: Authentication failed for 'https://mfleetwo@src.fedoraproject.org/forks/mfleetwo/rpms/gparted.git/'

$ git push git@src.fedoraproject.org:forks/mfleetwo/rpms/gparted.git epel7-update
ssh: connect to host src.fedoraproject.org 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.
2 Likes

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.

3 Likes

If things didn’t change recently, you need to be in the packager FAS group in order to push to src.fedoraproject.org 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.
https://fedoraproject.org/wiki/Package_maintenance_guide#Using_fedpkg_anonymously

3 Likes

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
2 Likes