Git Receiving fatal Not a git repository when attempting to remote add a Git repo

0 votes

The issue happened when I tried to add the repo  to my local machine:

git remote add nfsn ssh://USERNAME@NFSNSERVER/home/private/git/REPONAME.git

I receive the following error:

fatal: Not a git repository (or any of the parent directories): .git

Can someone help me with this issue?

Apr 29, 2022 in Other DevOps Questions by Kichu
• 19,040 points
1,192 views

1 answer to this question.

0 votes
Just init a local Git repository, into which this remote is supposed to be added. Then check if your local directory has a .git folder. If so then try git init.
I hope this helps.
answered Apr 30, 2022 by narikkadan
• 63,600 points

Related Questions In Other DevOps Questions

0 votes
1 answer

Please provide a shell script which runs to migrate from SVN to GIT

Hi@shashi, You can run the git-svn command. If ...READ MORE

answered Nov 27, 2020 in Other DevOps Questions by MD
• 95,460 points
921 views
0 votes
0 answers
0 votes
0 answers
+15 votes
2 answers

Git management technique when there are multiple customers and need multiple customization?

Consider this - In 'extended' Git-Flow, (Git-Multi-Flow, ...READ MORE

answered Mar 27, 2018 in DevOps & Agile by DragonLord999
• 8,450 points
4,034 views
+2 votes
1 answer
0 votes
1 answer

Message 'src refspec master does not match any' when pushing commits in Git

Solution. Try git show-ref to see what refs you have. ...READ MORE

answered Apr 30, 2022 in Other DevOps Questions by narikkadan
• 63,600 points
1,114 views
0 votes
1 answer

'git' is not recognized as an internal or external command

Add the following paths to PATH: C:\Program Files\Git\bin\ C:\Program ...READ MORE

answered Apr 29, 2022 in Other DevOps Questions by narikkadan
• 63,600 points
5,499 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP