root@3f626c2f9a55:/alx-pre_course# git add .
fatal: not a git repository (or any of the parent directories): .git
root@3f626c2f9a55:/alx-pre_course# git commit -m 'My first commit'
fatal: not a git repository (or any of the parent directories): .git
Asked
Active
Viewed 14 times
-2
Miles Morales
- 238
- 5
- 19
ARIBZ
- 1
- 3
-
1You have to do `git init` first. – Einliterflasche May 22 '22 at 22:05
-
1Do you already have an existing repository you created on, say, Bitbucket or GitHub or GitLab? Or is this supposed to be a totally-new repository (in which case run `git init` as @Einliterflasche said)? – torek May 22 '22 at 22:13
-
yes, there is an existing repo on my GitHub – ARIBZ May 22 '22 at 22:26
-
[[[[{ root@3f626c2f9a55:/alx-pre_course# git init Initialized empty Git repository in /alx-pre_course/.git/ }]]]] after running git init, this was my result. please what do i do next – ARIBZ May 22 '22 at 22:28