How to set up a node/angular app with GitHub?
Posted by 19Ant91@reddit | learnprogramming | View on Reddit | 2 comments
I'm trying to start a new angular project. But I like to put all my projects on GitHub because I swap between my desktop and laptop.
Usually, when I start a project in any other language, I make an empty GitHub repo, clone it, put all my stuff in there, and the push it. It works well.
But angular seems to have a big issue with this. It wants to create the folder itself, and screams if I don't let it do that. Or it creates another directory inside my cloned directory, which is disgusting.
I looked at some OSS projects, and they seem to have it setup nicely. But how the hell do I do that? I asked Chatgt, but it just went around in circles.
Sonaza@reddit
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:
spellenspelen@reddit
Make correct: Git is literally just a .git folder inside of your project directory. GitHub is just a place to store your git repo online. The type of project does not matter at all.