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
63
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
44
Featured
See All Featured
Principles of Awesome APIs and How to Build Them.
keavy
126
17k
Docker and Python
trallard
44
3.4k
BBQ
matthewcrist
88
9.7k
Measuring & Analyzing Core Web Vitals
bluesmoon
7
460
Helping Users Find Their Own Way: Creating Modern Search Experiences
danielanewman
29
2.6k
Become a Pro
speakerdeck
PRO
28
5.4k
Dealing with People You Can't Stand - Big Design 2015
cassininazir
367
26k
Practical Orchestrator
shlominoach
188
11k
VelocityConf: Rendering Performance Case Studies
addyosmani
329
24k
Chrome DevTools: State of the Union 2024 - Debugging React & Beyond
addyosmani
6
660
Creating an realtime collaboration tool: Agile Flush - .NET Oxford
marcduiker
30
2.1k
Refactoring Trust on Your Teams (GOTO; Chicago 2020)
rmw
34
3k
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 awin.abi@ruby-software.com
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