標籤:
iOS-操作github上傳代碼
github for mac用戶端怎麼使用
看著完全沒有頭緒:
步驟1:先添加一個mac的本地倉庫;repository是倉庫的意思
1、In the top left corner of the app, click ?.
Add create clone button in Mac app
.
2、 At the top of the menu, click Add.
The Add option in the Mac app
.
3The Local Path field in the Mac appClick Choose... and, using the Finder window, navigate to the local repository you want to add. .
4、The Add repository button in the Mac appClick Add Repository.
步驟2:從網上clone專案檔下來
1、In the top left corner of the app, click ?.
Add create clone button in Mac app
.
2 、At the top of the menu, click Clone.
The Clone option in the Mac app
.
3、Select a repositorySelect a repository under your username, or if you‘re working with an organization repository, under the name of the organization. .
4 、At the bottom of the menu, click Clone REPOSITORY.
Creating a branch增加一個分支
1 、At the top of the app, click ?.
Create branch icon button in Mac
.
2、In the Name field, type a meaningful name for your branch.
Name branch field
.
3 、Optionally, in the From menu, choose an upstream branch to compare your changes against.
Branch from menu
.
4、Create branch buttonClick Create branch.
About commits確認相當於儲存
After you clone a repository, you can create and review changes to the files in your project by creating commits.
Similar to "saving" a file, a commit is a change to one or more files in your branch, connected with a unique ID (the "SHA" or "hash") that tracks:
The specific changes
When the changes were made
Who created the changes
When you make a commit, you include a commit message that briefly describes the changes.
iOS-操作github上傳代碼001