- Offline First Web Development
- Daniel Sauble
- 392字
- 2021-07-30 10:30:50
Creating a Git repository
This step is optional but highly recommended. It will prevent you from losing progress when you accidentally delete files and allow you to easily revert changes or try experiments without fear of diverging from the examples in the book.
You may also choose to use GitHub (or another code sharing site) to upload your code. This protects your code from hard drive failure and makes it easier to share and collaborate with others. Again, this step is optional but recommended. If you want to use Git and GitHub, perform the following steps:
First, we will install GitHub. The following instructions are for OS X only. If you're on Windows, download the GitHub client from windows.github.com and install it the way you would install other Windows applications:
- Open mac.github.com in your browser.
- Click on Download GitHub Desktop.
- After the download is complete, open the application.
- Click on Move to my application folder.
- Click on Continue.
- If you don't have a GitHub account already, create one here; otherwise, log in with your existing credentials.
- Click on Continue.
- Enter your name and e-mail address.
- Click on Install Command Line Tools.
- Click on Continue.
- Click on Done:
GitHub tool
Create a repository and upload it to GitHub:
- Click the + icon to create a repository.
- Type
todo-app
for the repository name. - Click on Choose….
- Select a folder on your computer where you want to develop the app. (I recommend creating a projects directory under
$HOME
.) - Click on Open.
- Click on Create Repository.
- Click on Publish to upload your new repository to GitHub.
- Type
Initial commit
in the description field. - Click on Push Repository.
That's it! After you publish to GitHub, you can log in to your GitHub account and view these changes from any computer or device. You can download the repository, share it with others, and even make changes directly through your browser.
GitHub is free for open source software (OSS) projects. If you want to make the repository private, GitHub charges a reasonable monthly fee. Alternatively, you can choose not to use GitHub, but you'll want to make sure to back up your repository.
As we continue to develop the app, we'll prompt you to commit your changes to Git. As a developer, committing to Git should be as common and natural as saving files in your editor.
- The Supervised Learning Workshop
- 數(shù)字媒體應(yīng)用教程
- R語言編程指南
- Scratch 3游戲與人工智能編程完全自學(xué)教程
- C語言程序設(shè)計案例精粹
- 組態(tài)軟件技術(shù)與應(yīng)用
- Solr Cookbook(Third Edition)
- ServiceNow:Building Powerful Workflows
- JavaScript程序設(shè)計(第2版)
- 從0到1:HTML5 Canvas動畫開發(fā)
- QPanda量子計算編程
- Python第三方庫開發(fā)應(yīng)用實戰(zhàn)
- 游戲設(shè)計的底層邏輯
- 現(xiàn)代C++語言核心特性解析
- Flutter從0基礎(chǔ)到App上線