- 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.
- Java入門很輕松(微課超值版)
- Java:Data Science Made Easy
- 青少年信息學(xué)競(jìng)賽
- Practical GIS
- Android智能手機(jī)APP界面設(shè)計(jì)實(shí)戰(zhàn)教程
- 實(shí)驗(yàn)編程:PsychoPy從入門到精通
- Clojure編程樂(lè)趣
- Zend Framework 2 Cookbook
- Mastering R for Quantitative Finance
- 多接入邊緣計(jì)算實(shí)戰(zhàn)
- OpenCL異構(gòu)并行計(jì)算:原理、機(jī)制與優(yōu)化實(shí)踐
- PHP編程(第4版)
- Instant OpenCV for iOS
- Twitter Bootstrap Web Development How-to
- C++ Multithreading Cookbook