Closed ivasugarg closed 3 years ago
Check your alias command, some system alias gf command pointing to git command.
This is because might be using oh-my-zsh
and related ~/.zshrc
has git plugin activated by default.
alias gf='git fetch'
To overcome this issue just unalias this in your ~/.zshrc
file & then source it to make effective
$ nano ~/.zshrc
unalias gf
$ source ~/.zshrc
or if you don't want to go through these just enter these two commands & start a new ssh session
sed -i "s/alias gau='git add --update'/#alias gau='git add --update'/" $ZSH/plugins/git/git.plugin.zsh
sed -i "s/alias gf='git fetch'/#alias gf='git fetch'/" $ZSH/plugins/git/git.plugin.zsh
It should solve your issue @ivasugarg
$ cat ~/oyosub.wb| gf ssrf | tee -a ssfrparams.txt
fatal: 'ssrf' 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.
I am not able to figure out as to why I am getting "fatal" error even after having carefully repeated all the steps several times.