Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Git Basics
Search
Awin Abi
February 25, 2015
0
67
Git Basics
Awin Abi
February 25, 2015
Tweet
Share
More Decks by Awin Abi
See All by Awin Abi
Building and Launching your MVP
awin
0
46
Featured
See All Featured
Code Reviewing Like a Champion
maltzj
524
40k
Building Flexible Design Systems
yeseniaperezcruz
328
39k
Scaling GitHub
holman
461
140k
JavaScript: Past, Present, and Future - NDC Porto 2020
reverentgeek
50
5.5k
GraphQLとの向き合い方2022年版
quramy
49
14k
Fashionably flexible responsive web design (full day workshop)
malarkey
407
66k
A Tale of Four Properties
chriscoyier
160
23k
How GitHub (no longer) Works
holman
314
140k
Bash Introduction
62gerente
613
210k
Cheating the UX When There Is Nothing More to Optimize - PixelPioneers
stephaniewalter
283
13k
Improving Core Web Vitals using Speculation Rules API
sergeychernyshev
18
1k
Java REST API Framework Comparison - PWX 2021
mraible
31
8.7k
Transcript
Git Basics
Setup & Config Create a public repo in Github
Install git in local apt-get install git ssh setup https://help.github.com/articles/generating-ssh-ke ys/ Add global config for git in local git config --global user.name "Awin Abi" git config --global user.email
[email protected]
Daily Git Clone git clone <repo> Add changes
git add <file> Status git status Commit git commit Log git log Push git push origin master Pull git pull origin master
Some Concepts
Branching & Merging A branch is a movable pointer
to one of these commits New Branch git checkout -b <branchname> Switch Branch git checkout <branchname> Merge git checkout master git merge <branch>
None
None
Pull Request Create a new branch from master for
a new ticket '33452/fix-approver-view' Make changes and commit Push the new branch to github Create pull request Comment / Review Merge Pull Request https://guides.github.com/introduction/flow/
Git Session II Simple merge Merge with conflicts
Rebase Meld and Netbeans Git
Notes Download Git plugin for Netbeans 6.9:: https://code.google.com/p/nbgit/downloads/detail?name=nbgit-0.4- netbeans-6.9.nbm&can=2&q=0.4
Install meld tool:: sudo apt-get install meld Configure meld as diff and merge tool:: git config --global diff.external meld git config --global merge.tool meld
Questions
Thank You