SlideShare ist ein Scribd-Unternehmen logo
1 von 92
Downloaden Sie, um offline zu lesen
GUI Git
1.
2.
3.
4.
@afu
https://www.youtube.com/watch?v=_yQlKEq-Ueg
Repository
Developer
Developer Developer
Developer
Developer Developer
-
Repository
MainActivity.java
Developer
Repository
MainActivity.java
Developer
Repository
MainActivity.java
Developer
-
Repository
MainActivity.java
Developer
Repository
MainActivity.java
Repository
MainActivity.java
Developer Developer
Repository
MainActivity.java
Developer Developer
Develop Repository
Develop Develop
Develop Repository
Office Repository
Develop
Develop Repository
Fork
Develop Repository
Develop Develop
Develop Repository
Office Repository
Develop
Develop Repository
Commit
Develop Repository
Develop Develop
Develop Repository
Office Repository
Develop
Develop Repository
Pull Request
• ( )
•
• git
@oxxo
GUI or CLI?
http://www.slant.co/topics/465/compare/~the-command-line_vs_sourcetree_vs_tower-2
https://www.facebook.com/groups/git.tw/permalink/991589810889687/?qa_ref=qd
Git
http://www.slant.co/topics/153/compare/~github_vs_gitlab_vs_bitbucket
# log
git git config --global user.name weitsai
#
git git config --global user.email
begining1003@gmail.com
# Editor (vim, sublime or atom…)
git git config --global core.editor vim
Local

 
 

git
git git init

 

git
git | master⚡ touch test.md


test

 

git
git | master⚡ git add test.md
test



 

git
git | master⚡ git commit
test



 

git
git | master echo ‘test’ >> test.md


test

 

git
git | master⚡ git add test.md
test



 

git
git | master⚡ git commit -m ‘Update’
test


…
git | master echo ‘test’ >> test.md
git | master⚡ git add test.md
git | master git cat-file -t
9daeafb9864cf43055ae93beb0afd6c7d144bfa4
blob
git | master git cat-file -p
9daeafb9864cf43055ae93beb0afd6c7d144bfa4
test
git | master git commit -m ‘Add test file’
[master (root-commit) 77f64af] Add test file
1 file changed, 1 insertion(+)
create mode 100644 test.md
git | master git cat-file -t 77f64af
commit
git | master git cat-file -p 77f64af
git | master git cat-file -p 9098a4
100644
blob
9098a46b8a3cb674c82833688dfb5c77995053c2
test.md
git | master git cat-file -t 9098a4
tree
Commit
77f64af
Tree Blob
9daeaf 77f64af
Remote
#
git | master git remote add origin
{repo_url}
#
git | master git remote rm origin
#
git | master git remote -v
#
git | master git push origin master
#
git | master git pull origin master
#
git | master git clone {repo_url}
# commit
git | master git commit -v
#
git | master git add -p
#
git | master git checkout -f
# commit
git | master git log
#
git | master git log -p
# ....
git | master git blame
#
git | master git diff
#
git | master git checkout -b test
#
git | test git branch
# remote repo)
git | test git branch -a
# commit
git | test git branch -vv
# commit
git | master git reset HEAD~1
# commit
git | master git reset HEAD^^
# commit
git | master git reset —hard
# commit
git | master git revert HEAD~1
#
git | master git merge —no-f
q[branch]
# commit
git | master git rebase -i [commit]
#
git | master git merge —no-f
{branch_name}
Conflict
git | master echo ‘ GUI GIT’ >
README.md
git | master⚡ git add README.md
git | master⚡ git commit -m ‘Add
README’
git | master git checkout -b conflict
git | conflict echo ‘ GUI GIT’
> README.md
git | conflict ⚡ git add README.md
git | conflict ⚡ git commit -m
‘Update README’
git | conflict git checkout master
git | master echo ‘ GUI GIT’ >
README.md
git | master ⚡ git add README.md
git | master ⚡ git commit -m ‘Update
README(master)’
git | master git checkout conflict
git | conflict echo ‘ GUI GIT’
> README.md
git | conflict ⚡ git add README.md
git | conflict ⚡ git commit -m
‘Update README(conflict)’
git | conflict git rebase master
git | conflict vim README.md
https://www.flickr.com/photos/appleboy/5488984404
Master -
Develop -
Feature -
Release - develop bug
Hotfix - master bug
Commit
•
• 50
•
•
•
• 72
•
http://chris.beams.io/posts/git-commit/
SSH key
https://help.github.com/articles/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent/
Alias
CRLF
# OS X
git | master git config --global
core.autocrlf input
# Windows
git | master git config --global
core.autocrlf true
Tool
https://github.com/buunguyen/octotree
https://rtyley.github.io/bfg-repo-cleaner/
Security
gitignore
git javac test.java
git git status
http://gitignore.io/
https://github.com/github/gitignore
https://help.github.com/articles/remove-sensitive-data/
#
git git filter-branch --force --index-filter 
'git rm --cached --ignore-unmatch *.md' 
--prune-empty --tag-name-filter cat -- --all
SVN
# SVN
svn git svn clone -r HEAD {Repo URL}
# SVN Server
git | master⚡ git svn rebase
# Server
git | master⚡ git svn dcommit
• Git Book
• A successful Git branching model (Gitflow)
• iHower -
• How to Write a Git Commit Message
• Generating a new SSH key and adding it to the ssh-
agent
• What are the best hosted version control services?

Weitere ähnliche Inhalte

Was ist angesagt?

Git Tutorial For Beginners | What is Git and GitHub? | DevOps Tools | DevOps ...
Git Tutorial For Beginners | What is Git and GitHub? | DevOps Tools | DevOps ...Git Tutorial For Beginners | What is Git and GitHub? | DevOps Tools | DevOps ...
Git Tutorial For Beginners | What is Git and GitHub? | DevOps Tools | DevOps ...
Simplilearn
 

Was ist angesagt? (20)

Git Introduction
Git IntroductionGit Introduction
Git Introduction
 
Introduction git
Introduction gitIntroduction git
Introduction git
 
Github basics
Github basicsGithub basics
Github basics
 
Git and Github workshop
Git and Github workshopGit and Github workshop
Git and Github workshop
 
Intro to git and git hub
Intro to git and git hubIntro to git and git hub
Intro to git and git hub
 
Hacking Git and GitHub
Hacking Git and GitHubHacking Git and GitHub
Hacking Git and GitHub
 
FOSDEM 2017: GitLab CI
FOSDEM 2017:  GitLab CIFOSDEM 2017:  GitLab CI
FOSDEM 2017: GitLab CI
 
Starting with Git & GitHub
Starting with Git & GitHubStarting with Git & GitHub
Starting with Git & GitHub
 
Git
GitGit
Git
 
Git Tutorial For Beginners | What is Git and GitHub? | DevOps Tools | DevOps ...
Git Tutorial For Beginners | What is Git and GitHub? | DevOps Tools | DevOps ...Git Tutorial For Beginners | What is Git and GitHub? | DevOps Tools | DevOps ...
Git Tutorial For Beginners | What is Git and GitHub? | DevOps Tools | DevOps ...
 
GIT | Distributed Version Control System
GIT | Distributed Version Control SystemGIT | Distributed Version Control System
GIT | Distributed Version Control System
 
Introduction To Git
Introduction To GitIntroduction To Git
Introduction To Git
 
Introduction to Git and Github
Introduction to Git and GithubIntroduction to Git and Github
Introduction to Git and Github
 
Git n git hub
Git n git hubGit n git hub
Git n git hub
 
Git basics to advance with diagrams
Git basics to advance with diagramsGit basics to advance with diagrams
Git basics to advance with diagrams
 
Why you can't ignore GitLab
Why you can't ignore GitLabWhy you can't ignore GitLab
Why you can't ignore GitLab
 
Git and Github Session
Git and Github SessionGit and Github Session
Git and Github Session
 
Introduction to git administration
Introduction to git administrationIntroduction to git administration
Introduction to git administration
 
git and github
git and githubgit and github
git and github
 
Git advanced
Git advancedGit advanced
Git advanced
 

Andere mochten auch

Git 版本控制系統 -- 從微觀到宏觀
Git 版本控制系統 -- 從微觀到宏觀Git 版本控制系統 -- 從微觀到宏觀
Git 版本控制系統 -- 從微觀到宏觀
Wen-Tien Chang
 

Andere mochten auch (20)

Git 版本控制 (使用教學)
Git 版本控制 (使用教學)Git 版本控制 (使用教學)
Git 版本控制 (使用教學)
 
工程師必備第一工具 - Git
工程師必備第一工具 - Git工程師必備第一工具 - Git
工程師必備第一工具 - Git
 
Git 實務圖解
Git 實務圖解Git 實務圖解
Git 實務圖解
 
寫給大家的 Git 教學
寫給大家的 Git 教學寫給大家的 Git 教學
寫給大家的 Git 教學
 
Git由超淺入超深
Git由超淺入超深Git由超淺入超深
Git由超淺入超深
 
初心者 Git 上手攻略
初心者 Git 上手攻略初心者 Git 上手攻略
初心者 Git 上手攻略
 
Java Tutorial:Learn Java in 06:00:00
Java Tutorial:Learn Java in 06:00:00Java Tutorial:Learn Java in 06:00:00
Java Tutorial:Learn Java in 06:00:00
 
Git 版本控制系統 -- 從微觀到宏觀
Git 版本控制系統 -- 從微觀到宏觀Git 版本控制系統 -- 從微觀到宏觀
Git 版本控制系統 -- 從微觀到宏觀
 
鐵道女孩向前衝-RubyKaigi心得分享
鐵道女孩向前衝-RubyKaigi心得分享鐵道女孩向前衝-RubyKaigi心得分享
鐵道女孩向前衝-RubyKaigi心得分享
 
从效率出发的设计思考
从效率出发的设计思考从效率出发的设计思考
从效率出发的设计思考
 
Docker 初探,實驗室中的運貨鯨
Docker 初探,實驗室中的運貨鯨Docker 初探,實驗室中的運貨鯨
Docker 初探,實驗室中的運貨鯨
 
提到 DevOps 到底在談些什麼玩意兒?
提到 DevOps 到底在談些什麼玩意兒?提到 DevOps 到底在談些什麼玩意兒?
提到 DevOps 到底在談些什麼玩意兒?
 
進階主題
進階主題進階主題
進階主題
 
手機自動化測試和持續整合
手機自動化測試和持續整合手機自動化測試和持續整合
手機自動化測試和持續整合
 
豆瓣数据架构实践
豆瓣数据架构实践豆瓣数据架构实践
豆瓣数据架构实践
 
Rails Girls Weekly - 初探前端網頁技術 JavaScript 3/3
Rails Girls Weekly - 初探前端網頁技術 JavaScript 3/3Rails Girls Weekly - 初探前端網頁技術 JavaScript 3/3
Rails Girls Weekly - 初探前端網頁技術 JavaScript 3/3
 
Tavar -2016台灣 vrar產業調查(第一階段成果) 公開版
Tavar -2016台灣 vrar產業調查(第一階段成果) 公開版Tavar -2016台灣 vrar產業調查(第一階段成果) 公開版
Tavar -2016台灣 vrar產業調查(第一階段成果) 公開版
 
MySQL技术分享:一步到位实现mysql优化
MySQL技术分享:一步到位实现mysql优化MySQL技术分享:一步到位实现mysql优化
MySQL技术分享:一步到位实现mysql优化
 
Git basic
Git basicGit basic
Git basic
 
電子商務報告 Fb api使用與資料庫安全
電子商務報告 Fb api使用與資料庫安全電子商務報告 Fb api使用與資料庫安全
電子商務報告 Fb api使用與資料庫安全
 

Ähnlich wie 沒有 GUI 的 Git

Git Distributed Version Control System
Git   Distributed Version Control SystemGit   Distributed Version Control System
Git Distributed Version Control System
Victor Wong
 
2015-ghci-presentation-git_gerritJenkins_final
2015-ghci-presentation-git_gerritJenkins_final2015-ghci-presentation-git_gerritJenkins_final
2015-ghci-presentation-git_gerritJenkins_final
Mythri P K
 

Ähnlich wie 沒有 GUI 的 Git (20)

Git Distributed Version Control System
Git   Distributed Version Control SystemGit   Distributed Version Control System
Git Distributed Version Control System
 
Git Magic: Versioning Files like a Boss
Git Magic: Versioning Files like a BossGit Magic: Versioning Files like a Boss
Git Magic: Versioning Files like a Boss
 
Git - An Introduction
Git - An IntroductionGit - An Introduction
Git - An Introduction
 
GIT_In_90_Minutes
GIT_In_90_MinutesGIT_In_90_Minutes
GIT_In_90_Minutes
 
Introduction To Git Workshop
Introduction To Git WorkshopIntroduction To Git Workshop
Introduction To Git Workshop
 
Improving your workflow with git
Improving your workflow with gitImproving your workflow with git
Improving your workflow with git
 
Gittalk
GittalkGittalk
Gittalk
 
Git Ninja KT (GitHub to GitLab)
Git Ninja KT (GitHub to GitLab)Git Ninja KT (GitHub to GitLab)
Git Ninja KT (GitHub to GitLab)
 
Becoming a Git Master
Becoming a Git MasterBecoming a Git Master
Becoming a Git Master
 
2015-ghci-presentation-git_gerritJenkins_final
2015-ghci-presentation-git_gerritJenkins_final2015-ghci-presentation-git_gerritJenkins_final
2015-ghci-presentation-git_gerritJenkins_final
 
Git Started With Git
Git Started With GitGit Started With Git
Git Started With Git
 
GTFO: Git Theory For OpenSource
GTFO: Git Theory For OpenSourceGTFO: Git Theory For OpenSource
GTFO: Git Theory For OpenSource
 
Github integration-kostyasha
Github integration-kostyashaGithub integration-kostyasha
Github integration-kostyasha
 
simple Git
simple Git simple Git
simple Git
 
Wokshop de Git
Wokshop de Git Wokshop de Git
Wokshop de Git
 
Loading...git
Loading...gitLoading...git
Loading...git
 
GDSC GIT AND GITHUB
GDSC GIT AND GITHUB GDSC GIT AND GITHUB
GDSC GIT AND GITHUB
 
Git Basics Philips
Git Basics PhilipsGit Basics Philips
Git Basics Philips
 
Development with Git and Gerrit - Eclipse DemoCamp Stuttgart - 2010-11-23
Development with Git and Gerrit - Eclipse DemoCamp Stuttgart - 2010-11-23Development with Git and Gerrit - Eclipse DemoCamp Stuttgart - 2010-11-23
Development with Git and Gerrit - Eclipse DemoCamp Stuttgart - 2010-11-23
 
Git flow cheatsheet
Git flow cheatsheetGit flow cheatsheet
Git flow cheatsheet
 

Mehr von Chia Wei Tsai

iHelp-台北警政局分享
iHelp-台北警政局分享iHelp-台北警政局分享
iHelp-台北警政局分享
Chia Wei Tsai
 
iHELP @ Taipei Google Develop Group mobile day
iHELP @ Taipei Google Develop Group mobile dayiHELP @ Taipei Google Develop Group mobile day
iHELP @ Taipei Google Develop Group mobile day
Chia Wei Tsai
 
KSDG - iHelp 心路歷程
KSDG - iHelp 心路歷程KSDG - iHelp 心路歷程
KSDG - iHelp 心路歷程
Chia Wei Tsai
 

Mehr von Chia Wei Tsai (19)

iHelp & Open Data
iHelp & Open DataiHelp & Open Data
iHelp & Open Data
 
從競賽到創業
從競賽到創業從競賽到創業
從競賽到創業
 
GDGK (LT) - Git 工作流程
GDGK (LT) - Git 工作流程GDGK (LT) - Git 工作流程
GDGK (LT) - Git 工作流程
 
人生歷程
人生歷程人生歷程
人生歷程
 
人生歷程
人生歷程人生歷程
人生歷程
 
聲點典(第一版)
聲點典(第一版)聲點典(第一版)
聲點典(第一版)
 
KSDG-iSlide App 開發心得分享
KSDG-iSlide App 開發心得分享KSDG-iSlide App 開發心得分享
KSDG-iSlide App 開發心得分享
 
iHelp-資訊服務創新應用競賽
iHelp-資訊服務創新應用競賽iHelp-資訊服務創新應用競賽
iHelp-資訊服務創新應用競賽
 
Mopcon2014(LT)
Mopcon2014(LT)Mopcon2014(LT)
Mopcon2014(LT)
 
Ch2 first app
Ch2 first appCh2 first app
Ch2 first app
 
iHelp-台經院
iHelp-台經院iHelp-台經院
iHelp-台經院
 
iHelp(交點)
iHelp(交點)iHelp(交點)
iHelp(交點)
 
iHelp-台北警政局分享
iHelp-台北警政局分享iHelp-台北警政局分享
iHelp-台北警政局分享
 
IHelp@Taiwan - App 創意搖籃
IHelp@Taiwan - App 創意搖籃 IHelp@Taiwan - App 創意搖籃
IHelp@Taiwan - App 創意搖籃
 
IHELP@KSDG
IHELP@KSDG IHELP@KSDG
IHELP@KSDG
 
iHELP @ Taipei Google Develop Group mobile day
iHELP @ Taipei Google Develop Group mobile dayiHELP @ Taipei Google Develop Group mobile day
iHELP @ Taipei Google Develop Group mobile day
 
iHELP
iHELPiHELP
iHELP
 
Word教材
Word教材Word教材
Word教材
 
KSDG - iHelp 心路歷程
KSDG - iHelp 心路歷程KSDG - iHelp 心路歷程
KSDG - iHelp 心路歷程
 

Kürzlich hochgeladen

EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
Earley Information Science
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
Joaquim Jorge
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
vu2urc
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
Enterprise Knowledge
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
giselly40
 

Kürzlich hochgeladen (20)

A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdf
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 

沒有 GUI 的 Git