Hi,
I created a project. But I couldn't find a way to upload my code into version control repositories like BitBucket or SVN.
Any guidance would be appreciated.
Thanks.
Hi!
This question is probably most likely suited for a search on StackOverflow where there are extensive answers.
However, a great starting place would be the gittutorial.
The gist of it is git init, followed by git add -A and a git commit -m "message" to get started.
If you're more of a visual person, you may find TortoiseSVN or TortoiseGIT a better solution.
Also note most editors come with in-built support for VCS, such as VSCode and the JetBrains family.
Please let us know if you have any questions about CRA or if there's anything else we can help with. 馃槃
@Timer
Thanks for your reply.
I realize that I have phrased the question completely wrong.
I wasn't actually looking for generic information about version control.
My concern was about how I can distribute a project created using create-react-app through git.
When the project is created for the first time, 'create-react-app' initializes everything. But it will not be the case, if the created project is uploaded to git and cloned to another machine.
After cloning the repo, what command should be run for the initial setup of the project? And if there are any prerequisites (One obvious prerequisite I can think of is that, I should have installed create-react-app)
Hope I made my concern clear now.
Your thoughts?
After cloning the repo, run npm install.
If you are using Yarn instead, run yarn.
After cloning the repo, what command should be run for the initial setup of the project? And if there are any prerequisites (One obvious prerequisite I can think of is that, I should have installed create-react-app)
As @gaearon said, you only need to run npm install or yarn.
The only prerequisite on the target machine is Node >= 4, you do not need create-react-app installed.