How to use Git with React Native

(for Mac users)

Mike Callahan
React Native Institute
2 min readFeb 14, 2017

--

  1. While in your root directory, use terminal to create your react native project.

2. Change your directory to your new project.

3. Initialize your project for git.

4. Add all the files created by step #1.

5. Commit the files and add a message.

6. Now go to your github dashboard and create a new project.

7. Enter a name for your repository and click the “Create repository” button.

8. Copy the URL to the clipboard.

9. Go back to your terminal and set the origin by pasting the url from the clipboard.

10. Push the files from your local machine to your github repository.

Done. Your github repository is now setup. Use your git commands to commit and push code to your github repository after making code modifications on your local machine.

Hope this helps get you going with git and using your github repository for your react native projects.

--

--

Mike Callahan
React Native Institute

Building stuff on the web and mobile devices and sharing with others.