SlideShare a Scribd company logo
Git BasicBrowny2010.12.06
OutlineIntroduction to GitInstall GitBasic CommandsGit BranchGit and DropboxResources
rcs
Centralized Version Control System (CVCS) CVS
 Subversion
 Perforce
 etc…Distributed Version Control System (DVCS)Git
 Mercurial
 Bazaar
 etc…Snapshot, not DifferencesCVSGit
Flow
OutlineIntroduction to GitInstall GitBasic CommandsGit BranchGit and DropboxResources
Install Git on Windowsmsysgit - http://code.google.com/p/msysgit/
Initialization設定 ID 和 Email	$ gitconfig --global user.name “browny" 	$ gitconfig --global user.emailbrowny@gmail.com查看設定資料	$ gitconfig --list
OutlineIntroduction to GitInstall GitBasic CommandsGit BranchGit and DropboxResources
Basic Commands (1)初始化一個 git倉庫$ git init將檔案放入暫存夾等候 commit$ git add指定要忽略 commit 的檔案 (create a file in your repo named .gitignore)*.[oa]:忽略所有 .o 和 .a 檔案*~ :忽略所有 ~ 檔案
Basic Commands (2)觀看狀態$ git status提交 $ git commit幫某次 commit 加上含附註的標籤 tag$ git tag –a v1.1 –m ‘version 1.1’觀看提交歷程$ git log
Basic Commands (3)複製遠端 repo.$ git clone git://github.com/schacon/grit.git自定義複製來的 repo. 名稱$ git clone git://github.com/schacon/grit.git mygrit
Basic Commands (4)查看現有的分支	$ git branch               建立新的分支	$ git branch 分支名稱切換到主幹上	$ git checkout master 切換到某個分支上git checkout 分支名稱
OutlineIntroduction to GitInstall GitBasic CommandsGit BranchGit and DropboxResources
First Commit
Multiple Commit
master
Make a branch$ git branch testing
Re-direct HEAD$ git checkout testing
Commit on testing
Back to master$ git checkout master
Commit on master
OutlineIntroduction to GitInstall GitBasic CommandsGit BranchGit and DropboxResources
Dropbox Setting
Set up cloud repo.Make a directory in Dropbox$ mkdir /GitRepo/opencv-gradient.git	$ cd /GitRepo/opencv-gradient.gitInitialize it $ git init --bare

More Related Content

PDF
Nge-GIT (Belajar Git Bareng)
PDF
Python_Session
PDF
Intro to grunt
PDF
Git walkthrough
PPTX
Understanding about git
PDF
Collaborative Coding: Git + Github (NSI Tech Talks)
PDF
Git Basics 1 Carenza
PDF
Git: An introduction of plumbing and porcelain commands
Nge-GIT (Belajar Git Bareng)
Python_Session
Intro to grunt
Git walkthrough
Understanding about git
Collaborative Coding: Git + Github (NSI Tech Talks)
Git Basics 1 Carenza
Git: An introduction of plumbing and porcelain commands

What's hot (14)

PDF
Magie di git
PDF
The myths of deprecating docker in kubernetes
PDF
How to Contribute to GStreamer
PPTX
Great Hiroshima with Python 170830
PPTX
Introduction to node js
PDF
Brainly git basics workshop
PDF
Introduction to zc.buildout
PDF
Camlistore reprise at Google NYC
PPT
New kid on the block node.js
ODP
Beginner's guide to drizzle
PPTX
Docker
PDF
Openwrt frontend backend
PPTX
Git operation 101
PPT
REST Web Sebvice
Magie di git
The myths of deprecating docker in kubernetes
How to Contribute to GStreamer
Great Hiroshima with Python 170830
Introduction to node js
Brainly git basics workshop
Introduction to zc.buildout
Camlistore reprise at Google NYC
New kid on the block node.js
Beginner's guide to drizzle
Docker
Openwrt frontend backend
Git operation 101
REST Web Sebvice
Ad

Viewers also liked (10)

PPTX
Branch model in Git
PPTX
Git tutorial git branches 20131206-Bryan
DOCX
sahithi_Build_Release_Resume
DOC
Nitin resume dev_ops
DOCX
Release build engineer j2ee focused
DOC
Santhosh build and release (1)
DOC
Khaleel Devops Resume (2)
DOCX
Dev ops engineer
PDF
Vighnesh_Naik_Resume_DevOps
PDF
Git vol 2
Branch model in Git
Git tutorial git branches 20131206-Bryan
sahithi_Build_Release_Resume
Nitin resume dev_ops
Release build engineer j2ee focused
Santhosh build and release (1)
Khaleel Devops Resume (2)
Dev ops engineer
Vighnesh_Naik_Resume_DevOps
Git vol 2
Ad

Similar to Git basic (20)

PPTX
PDF
版本控制Git
PDF
Git 基础
PDF
簡單介紹git
PDF
Git: basic to advanced
PPTX
simple Git
PDF
Git and Github
PPTX
Git essential training & sharing self
PPTX
Git demo for beginners-Learning path to evolve
DOCX
setting up a repository using GIT
PDF
GTFO: Git Theory For OpenSource
KEY
Git and GitHub
PPT
Git and fundamentals
KEY
Git isthenewsexy
PDF
Github - Git Training Slides: Foundations
PDF
Git 入门 与 实践
PDF
Version Control History and Git Basics
KEY
Git Basics Philips
PDF
Git 入门与实践
PDF
版本控制Git
Git 基础
簡單介紹git
Git: basic to advanced
simple Git
Git and Github
Git essential training & sharing self
Git demo for beginners-Learning path to evolve
setting up a repository using GIT
GTFO: Git Theory For OpenSource
Git and GitHub
Git and fundamentals
Git isthenewsexy
Github - Git Training Slides: Foundations
Git 入门 与 实践
Version Control History and Git Basics
Git Basics Philips
Git 入门与实践

More from Shih-Hsiang Lin (13)

PDF
Introduction to Apache Ant
PDF
Introduction to GNU Make Programming Language
KEY
Ch6 file, saving states, and preferences
PDF
[C++ gui programming with qt4] chap9
PDF
Ch5 intent broadcast receivers adapters and internet
PDF
Ch4 creating user interfaces
PDF
Ch3 creating application and activities
PDF
[C++ GUI Programming with Qt4] chap7
PPTX
[C++ GUI Programming with Qt4] chap4
PPTX
Function pointer
PPT
Introduction to homography
PPTX
Project Hosting by Google
PDF
An Introduction to Hidden Markov Model
Introduction to Apache Ant
Introduction to GNU Make Programming Language
Ch6 file, saving states, and preferences
[C++ gui programming with qt4] chap9
Ch5 intent broadcast receivers adapters and internet
Ch4 creating user interfaces
Ch3 creating application and activities
[C++ GUI Programming with Qt4] chap7
[C++ GUI Programming with Qt4] chap4
Function pointer
Introduction to homography
Project Hosting by Google
An Introduction to Hidden Markov Model

Recently uploaded (20)

PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
PDF
cuic standard and advanced reporting.pdf
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
PDF
Machine learning based COVID-19 study performance prediction
PPTX
20250228 LYD VKU AI Blended-Learning.pptx
PDF
CIFDAQ's Market Insight: SEC Turns Pro Crypto
PDF
Unlocking AI with Model Context Protocol (MCP)
PPTX
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
PPTX
A Presentation on Artificial Intelligence
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PDF
Chapter 3 Spatial Domain Image Processing.pdf
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PPTX
MYSQL Presentation for SQL database connectivity
PDF
Network Security Unit 5.pdf for BCA BBA.
PDF
Shreyas Phanse Resume: Experienced Backend Engineer | Java • Spring Boot • Ka...
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PDF
Bridging biosciences and deep learning for revolutionary discoveries: a compr...
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
“AI and Expert System Decision Support & Business Intelligence Systems”
cuic standard and advanced reporting.pdf
Digital-Transformation-Roadmap-for-Companies.pptx
Machine learning based COVID-19 study performance prediction
20250228 LYD VKU AI Blended-Learning.pptx
CIFDAQ's Market Insight: SEC Turns Pro Crypto
Unlocking AI with Model Context Protocol (MCP)
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
A Presentation on Artificial Intelligence
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
Chapter 3 Spatial Domain Image Processing.pdf
Mobile App Security Testing_ A Comprehensive Guide.pdf
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
MYSQL Presentation for SQL database connectivity
Network Security Unit 5.pdf for BCA BBA.
Shreyas Phanse Resume: Experienced Backend Engineer | Java • Spring Boot • Ka...
Agricultural_Statistics_at_a_Glance_2022_0.pdf
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
Bridging biosciences and deep learning for revolutionary discoveries: a compr...
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...

Git basic