iT邦幫忙

2021 iThome 鐵人賽

DAY 29
0
Mobile Development

刮掉Web Development的我,與撿到的Android Development系列 第 29

[Lesson29] Git

// 移動到檔案路徑
cd "檔案路徑"

// 確認git版本並有無正確安裝
git --version

// xxxxx輸入github帳號
git config --global user.name "xxxxx"

// xxxxx輸入github電子信箱
git config --global user.email "xxxxx"

// 使用git進行版本控制
git init

在github的your repositories new 取得url
![https://ithelp.ithome.com.tw/upload/images/20210930/20129566dRjT2jrPvn.png](https://ithelp.ithome.com.tw/upload/images/20210930/20129566dRjT2jrPvn.png)

// 檔案連結
git remote add origin "url"

// 新增全部檔案
git add .

// 檔案提交
git commit -m "輸入修改的內容"

// 檔案推送
git push -u origin "分支名稱"

// 建立分支
git branch "分支名稱"

// 查看分支
git branch

// 切換到分支
git checkout "分支名稱"

謝謝大家願意花時間閱讀,小弟弟我在此鞠躬/images/emoticon/emoticon41.gif


上一篇
[Lesson28] Kotlin - Generics
下一篇
[Lesson30] 結語
系列文
刮掉Web Development的我,與撿到的Android Development30
圖片
  直播研討會
圖片
{{ item.channelVendor }} {{ item.webinarstarted }} |
{{ formatDate(item.duration) }}
直播中

尚未有邦友留言

立即登入留言