- 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.
- HTML5+CSS3+JavaScript從入門到精通:上冊(微課精編版·第2版)
- Linux C/C++服務器開發實踐
- PostgreSQL Cookbook
- PowerCLI Cookbook
- Reactive Programming with Swift
- HBase從入門到實戰
- Building Mobile Applications Using Kendo UI Mobile and ASP.NET Web API
- 匯編語言程序設計(第3版)
- Learning DHTMLX Suite UI
- R大數據分析實用指南
- 領域驅動設計:軟件核心復雜性應對之道(修訂版)
- Photoshop CC移動UI設計案例教程(全彩慕課版·第2版)
- Modular Programming with JavaScript
- Python機器學習開發實戰
- Java EE項目應用開發