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

0 votes

Hi Guys,

I am getting this below error, when I tried to push my file in GitHub.

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

How can I solve this error?

Apr 29 in Git & GitHub by akhtar
• 11,270 points
230 views

1 answer to this question.

0 votes

Hi@akhtar,

I think you didn't initialize your folder as git repository. To initialize, use the below given command.

$ git init folder_name

Hope this will help.

answered Apr 29 by MD
• 24,500 points

Related Questions In Git & GitHub

0 votes
2 answers

How to view the nested workflow of a local git repository?

The closest way to view branches in ...READ MORE

answered Aug 2, 2019 in Git & GitHub by Sirajul
• 53,110 points
158 views
0 votes
1 answer

gerrit-cherry-pick:fatal: 'origin' does not appear to be a git repository

The user account making that command does ...READ MORE

answered Aug 13, 2018 in Git & GitHub by Kalgi
• 51,850 points
387 views
0 votes
1 answer
0 votes
1 answer
+13 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 26, 2018 in DevOps & Agile by DragonLord999
• 8,420 points
498 views
0 votes
1 answer
0 votes
1 answer
0 votes
2 answers

Can anyone explain the git workflow?

Hi, The workflow of Git is described below First you ...READ MORE

answered Feb 4 in Git & GitHub by MD
• 24,500 points
69 views