- 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.
- 程序員面試筆試寶典(第3版)
- C語言程序設計(第2 版)
- PostgreSQL技術內幕:事務處理深度探索
- Java 9 Programming Blueprints
- 基于免疫進化的算法及應用研究
- Java軟件開發基礎
- INSTANT Passbook App Development for iOS How-to
- Extending Puppet(Second Edition)
- SignalR:Real-time Application Development(Second Edition)
- Java程序設計教程
- Java高級程序設計
- C Primer Plus(第6版)中文版【最新修訂版】
- Building Clouds with Windows Azure Pack
- Manage Your SAP Projects with SAP Activate
- 絕密原型檔案:看看專業產品經理的原型是什么樣