Here are detailed instructions to connect to your Sourceforge account and change the config
file and enable non-fast-forward
updates.
You can change denyNonFastForwards
of a standard Sourceforge project from your computer with the following commands :
- Connect to your SSH account using Interactive Shell with command
ssh -t ron190ron190@shell.sourceforge.net create
. Notice that the URL is different from the one of your project:
$ ssh -t ron190ron190@shell.sourceforge.net create
The authenticity of host 'shell.sourceforge.net (ip)' can't be established.
ECDSA key fingerprint is SHA256:key
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'shell.sourceforge.net,ip' (ECDSA) to the list of known hosts.
Password:
Requesting a new shell for "user" and waiting for it to start.
queued... creating... starting...
This is an interactive shell created for user user,users
Use the "timeleft" command to see how much time remains before shutdown.
Use the "shutdown" command to destroy the shell before the time limit.
For path information and login help, type "sf-help".
Find the file config
using sf-help --scm
or pwd
, it should be located in folder /home/git/p/myproject/code.git/
.
Read the config
file to check denyNonFastforwards
status, it is indeed set to true:
[user@shell-22003 code.git]$ cat config
[core]
repositoryformatversion = 0
filemode = true
bare = true
sharedrepository = 2
[receive]
denyNonFastforwards = true
- Start vi to modify the file, change
true
to false
:
[user@shell-22003 code.git]$ vi config
[core]
repositoryformatversion = 0
filemode = true
bare = true
sharedrepository = 2
[receive]
denyNonFastforwards = false
~
~
1,1 All
- Type
:w
to save the change and :q
to exit vi.
The error denying non-fast-forward
should not appear anymore.