字幕列表 影片播放 列印所有字幕 列印翻譯字幕 列印英文字幕 What's the first step in using GitHub? 要怎麼開始使用 github 呢? Initializing a repository; 讓我們告訴你 We'll show you how. 要如何的初始化你的專案 [GitHub & Git Foundations] [ GitHub & Git 基礎知識 ] Hi, I'm Tim Berglund. 你好,我是 Tim Berglund Welcome to another episode of GitHub Foundations. 歡迎收看這部影片 In today's episode, we're going to talk about 今天的這部影片 how to initialize a repository. 將會告訴你如何初始化一個專案 That's a thing you can do locally, on your computer, 你可以在你的電腦上 or in the cloud at github.com. 或者是在 github.com 完成這件事情 We'll show you both ways. 或者是在 github.com 完成這件事情 [Local Repository] [ 本地端 ] Suppose you've already got a project going 假設你已經有一個專案 on your computer. 在電腦裡面 You've done some work, and then you realize 你已經完成了不少東西,然後開始覺得 you should really have this going under version control. 應該做個版本控制 It's simple. When you're in your project directory, 很簡單,把終端機打開並切換到該專案的目錄 at the command line, just type git init. 輸入這個指令:git init It turns the directory into a git repository, 這個目錄的就成功的被初始化成有 git 版本控制的專案了 and it's completely non-destructive. 而且不會影響到你專案內的檔案 If you're feeling a bit more disciplined, 如果你想要更嚴謹一點 maybe you'll want to get the project 在專案開始時 under source control before you get started. 就要有版本控制 This is easy too. 方法一樣很簡單 Before you begin a new project, just type git init, 一樣先輸入:git init 接著 and then the name of the directory you'd like git to create. 輸入你想要的目錄名稱 That's the name of the project. 這個目錄名稱也會是你的專案名稱 That'll create a directory already initialized 並且也把這個目錄 as a git repository. 初始化成有 git 版本控制的專案 Git is useful locally, but the real magic happens 接下來,還有更酷的 when you start to collaborate with other people on github.com. 當你想跟別人一起在 github.com 上協作 Let's look at how to create a new repository there. 來去 github 上建立一個專案吧! [Repository on GitHub.com] [ Repository on Github.com ] Just sign in to github.com 先登入 github.com and look for the new repository button. 然後找到開啟新專案的按鈕 Click on that, and then type in a name for your project. 點下去後,打入你想要的專案名稱 Mind you, this name doesn't have to be globally unique. 小提醒:這個名字不一定要是獨一無二的 It just has to be unique within the repositories you have. 不要跟你現有的專案有相同名稱即可 Your username serves as 你的使用者名稱將會幫助 a name space for all your project names, 識別這些不同的專案 which makes picking one a lot easier. 這也讓命名可以簡單一些 Now decide whether you want the repo to be public or private, 接著可以選擇這個專案是公開的或是是私人的 and whether you want GitHub to create a "Read Me" 要不要 GitHub 幫助你產生讀我檔 or a .gitignore file. 還有,需不需要產生 .gitignore 檔 The "Read Me" just tells people what your project is about. 讀我檔可以放專案的簡介給別人參考 .gitignore tells git what files you don't want .gitignore 可以幫助你 under version control. 哪些檔案不要被加入到版本控制 We'll cover this more in a future episode. 這些東西都會在未來的影片中慢慢跟各位介紹 If you already have a project on your computer that you want 如果你已經有專案在你的電腦裡面了 to push up to GitHub, skip those steps. 可以略這些步驟 If you haven't made a project locally on your computer yet, 沒有的話 it can be really convenient to have GitHub create that 你可以在 GitHub 上輕鬆的完成這些設定 "Read Me" and .gitignore file for you. 像是建立讀我檔跟 .gitignore 檔 After you've got a local repo on your computer, 當你在自己的電腦上 and one up on github.com, you're going to need 跟 github.com 上專案都建立好之後 to get the two of them connected. 接下來就要來把這兩件事情串連起來 GitHub gives you some help in that direction, 我們有提供一些指示可以給你參考 but before we get there, there's some other material 但在這之前 we'd like to cover first. 還有些事情我們還沒提到 [Thanks for watching] [ 感謝你的收看 ] Thanks for watching this episode of GitHub Foundations on Init. 感謝收看 GitHub 基本知識系列 - 關於 git 初始化 If you liked this, subscribe to GitHub Guides right here, 如果你喜歡這個系列,歡迎訂閱這個頻道 - GitHub Guides and don't forget to check out our other GitHub channels 也別忘了去看看 GitHub 頻道 down here. If you have a question or a comment, as always, 如果你有任何問題或是意見 we'd love for you to leave that down below, and if you want 歡迎在下面留言 to see more training videos like this one, check out 如果想要看到更多教學影片 these guys down here. 可以去看看影片中的這些人
B1 中級 中文 專案 目錄 名稱 版本 影片 控制 Init - GitHub & Git Foundations (Init • GitHub & Git Foundations) 215 12 Mickey Fly 發佈於 2021 年 01 月 14 日 更多分享 分享 收藏 回報 影片單字