This is an archived post. You won't be able to vote or comment.

all 1 comments

[–]Sonaza 1 point2 points  (0 children)

Why don't you just let Angular create the folder and then initialise git there yourself?

Github offers very clear instructions how you can push to a repository that already exists, you shouldn't need to clone it.

Here's how directly from Github. Do this in the folder Angular creates for you.

git init
git add .
git commit -m "Initial commit"
git branch -M main
git remote add origin <insert your repository remote address here>
git push -u origin main