If by “appropriate git clone” you’re referring to which example to use from the Code tab, you can choose any of the three provided options. Each example demonstrates a different connection method:
SSH – recommended if you have SSH keys configured
HTTPS – commonly used with username/token authentication
Git (read-only) – suitable if you only need read access
All three will clone the same repository; the difference is simply the protocol used to connect.
If this does not address your question, please feel free to elaborate so we can assist further.
Sincerely,
SourceForge Support
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
Thanks for the reply.
I figured out how should look like exactly the git clone command in case of my sgt_fw project.
git clone https://git.code.sf.net/p/sgt-fw/code sgt-fw-code
It is OK.
But this git command wont work:
git push -u origin master
It gives:
** WARNING: connection is not using a post-quantum key exchange algorithm.
** This session may be vulnerable to "store now, decrypt later" attacks.
** The server may need to be upgraded. See https://openssh.com/pq.html
(onlyzaenae@git.code.sf.net) Password:
fatal: '/git/p/sgt_fw' does not appear to be a git repository
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
What should I do?
Best regards,
OnlyZaenae
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
The warning about the post-quantum key exchange can be ignored — it does not affect Git functionality.
The actual issue is this message:
'/git/p/sgt_fw' does not appear to be a git repository
This indicates that the remote repository path configured for origin is incorrect or that you do not have access to that repository. The git push -u origin master command itself is valid, but Git is unable to find the repository at the configured location.
Thanks for the reply.
Here is result of verification of the remote url:
git remote -v
origin ssh://onlyzaenae@git.code.sf.net/p/sgt_fw (fetch)
origin ssh://onlyzaenae@git.code.sf.net/p/sgt_fw (push)
What is wrong with this?
Best regards,
OnlyZaenae
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
OK.
git remote add origin ssh://onlyzaenae@git.code.sf.net/p/sgt_fw/REPO
What should I insert into the place where the REPO is?
What is my repository name? I believed it is sgt_fw, but I faiied.
Last edit: OnlyZaenae 2026-01-29
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
No investigation was required to determine the repository name.
When the repository is cloned, the repository name is explicitly referenced in the command, which is why it has been known from the beginning.
“code” is simply the default name used by the tool, not a custom or hidden label.
If you need to modify an existing remote or adjust how it points to a repository, Git provides commands for updating remote URLs.
I've vhanged the url from ssh to https, the result:
Password for 'https://onlyzaenae@git.code.sf.net':
fatal: repository 'https://git.code.sf.net/p/sgt_fw/code/' not found
It wont work.
So, I changed back to ssh. Still wont work.
Best regards,
OnlyZaenae
Last edit: OnlyZaenae 2026-02-06
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi, thank you for help. I think I should open another ticket, because I got the answer to my question.. You can close this ticket.
But, I have still problem with the git push command.
Best regards,
OnlyZaenae
Last edit: OnlyZaenae 2026-02-07
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
git push -u origin master
** WARNING: connection is not using a post-quantum key exchange algorithm.
** This session may be vulnerable to "store now, decrypt later" attacks.
** The server may need to be upgraded. See https://openssh.com/pq.html
(onlyzaenae@git.code.sf.net) Password:
fatal: '/git/p/sgt_fw/code' does not appear to be a git repository
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
Still wont work...
Best regards,
OnlyZaenae
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello,
Thank you for reaching out.
If by “appropriate git clone” you’re referring to which example to use from the Code tab, you can choose any of the three provided options. Each example demonstrates a different connection method:
All three will clone the same repository; the difference is simply the protocol used to connect.
If this does not address your question, please feel free to elaborate so we can assist further.
Sincerely,
SourceForge Support
Hi,
Thanks for the reply.
How should look like exactly the git clone command in case of my sgt_fw project?
Best regards,
OnlyZaenae
Hi,
Thanks for the reply.
I figured out how should look like exactly the git clone command in case of my sgt_fw project.
git clone https://git.code.sf.net/p/sgt-fw/code sgt-fw-code
It is OK.
But this git command wont work:
git push -u origin master
It gives:
** WARNING: connection is not using a post-quantum key exchange algorithm.
** This session may be vulnerable to "store now, decrypt later" attacks.
** The server may need to be upgraded. See https://openssh.com/pq.html
(onlyzaenae@git.code.sf.net) Password:
fatal: '/git/p/sgt_fw' does not appear to be a git repository
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
What should I do?
Best regards,
OnlyZaenae
Hello,
Thanks for sharing the error output.
The warning about the post-quantum key exchange can be ignored — it does not affect Git functionality.
The actual issue is this message:
'/git/p/sgt_fw' does not appear to be a git repositoryThis indicates that the remote repository path configured for origin is incorrect or that you do not have access to that repository. The
git push -u origin mastercommand itself is valid, but Git is unable to find the repository at the configured location.Please verify the remote URL by running:
git remote -vYou can take a llok at our Git documentation here:
https://sourceforge.net/p/forge/documentation/Git/
Once the remote URL is correct and you have access to the repository, the push command should work as expected.
Sincerely,
SourceForge Support
Hi,
Thanks for the reply.
Here is result of verification of the remote url:
git remote -v
origin ssh://onlyzaenae@git.code.sf.net/p/sgt_fw (fetch)
origin ssh://onlyzaenae@git.code.sf.net/p/sgt_fw (push)
What is wrong with this?
Best regards,
OnlyZaenae
Hello,
It looks like your remote path is missing the name of the repository (code)
Please take a look at the example given in the documentation provided earlier: https://sourceforge.net/p/forge/documentation/Git/#h-how-to-push-a-local-repository
Sincerely,
SourceForge Support
Hi,
OK.
git remote add origin ssh://onlyzaenae@git.code.sf.net/p/sgt_fw/REPO
What should I insert into the place where the REPO is?
What is my repository name? I believed it is sgt_fw, but I faiied.
Last edit: OnlyZaenae 2026-01-29
Hello,
I might not have been clear before, the repository name is code.
Sincerely,
SourceForge Support
Hi,
Many thanks.
How did you recognize/investigate the name?
I made this setting earlier:
git remote add origin ssh://onlyzaenae@git.code.sf.net/p/sgt_fw
How can I change to this:
git remote add origin ssh://onlyzaenae@git.code.sf.net/p/sgt_fw/code ?
Best regards,
OnlyZaenae
Last edit: OnlyZaenae 2026-01-29
Hello,
No investigation was required to determine the repository name.
When the repository is cloned, the repository name is explicitly referenced in the command, which is why it has been known from the beginning.
“code” is simply the default name used by the tool, not a custom or hidden label.
If you need to modify an existing remote or adjust how it points to a repository, Git provides commands for updating remote URLs.
Those options are documented here:
https://git-scm.com/docs/git-remote
Sincerely,
SourceForge Support
Hi,
I've modified the git config, like this:
git config --list
user.email=only.zaenae@gmail.com
user.name=OnlyZaenae
core.editor=nano
core.repositoryformatversion=0
core.filemode=true
core.bare=false
core.logallrefupdates=true
remote.origin.url=ssh://onlyzaenae@git.code.sf.net/p/sgt_fw/code
remote.origin.fetch=+refs/heads/:refs/remotes/origin/
The error message is still the same, this:
fatal: '/git/p/sgt_fw/code' does not appear to be a git repository
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
It wont work.
Best regards,
OnlyZaenae
I've vhanged the url from ssh to https, the result:
Password for 'https://onlyzaenae@git.code.sf.net':
fatal: repository 'https://git.code.sf.net/p/sgt_fw/code/' not found
It wont work.
So, I changed back to ssh. Still wont work.
Best regards,
OnlyZaenae
Last edit: OnlyZaenae 2026-02-06
Hi, thank you for help. I think I should open another ticket, because I got the answer to my question.. You can close this ticket.
But, I have still problem with the git push command.
Best regards,
OnlyZaenae
Last edit: OnlyZaenae 2026-02-07
Hello,
Thank you for reaching out, and my apologies for the delayed response. I missed the follow-up issue.
I’ll close the newer ticket to keep all relevant information in one place.
This issue is related to the SSH URL format being used for the remote.
Please update the existing remote using the SCP-style SSH URL:
git remote set-url origin USERNAME@git.code.sf.net:/p/PROJECTNAME/REPOSITORYAfter updating the remote, please try pushing again.
Sincerely,
SourceForge Support
Hi,
I have updated the remote based on your proposal:
git remote set-url origin onlyzaenae@git.code.sf.net:/p/sgt_fw/code
result:
git push -u origin master
** WARNING: connection is not using a post-quantum key exchange algorithm.
** This session may be vulnerable to "store now, decrypt later" attacks.
** The server may need to be upgraded. See https://openssh.com/pq.html
(onlyzaenae@git.code.sf.net) Password:
fatal: '/git/p/sgt_fw/code' does not appear to be a git repository
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
Still wont work...
Best regards,
OnlyZaenae
Hello,
It looks like the project name was entered with an underscore (_) instead of a dash (-).
Could you please update it and try again?
Sincerely,
SourceForge Support
Hi,
Finally! It works!
Thanks. I forgot the unix name is a bit different.
Thanks a lot. You can close the ticket.
Best regards,
OnlyZaenae
Hi,
Thank you for your feedback
With your issue resolved, this ticket will be closed.
Sincerely,
SourceForge Support