SlideShare a Scribd company logo
GIT
ANDROID STUDIO WITH BITBUCKET
What is GIT?
 Git is a free and open source distributed version control system
designed to handle everything from small to very large projects with
speed and efficiency.
Why Git?
 Branching and Merging
 Small and Fast
 Distributed
 Data Assurance
 Staging Area
 Free and Open Source
Branching and Merging
 multiple local branches
 Frictionless Context Switching
 Role-Based Codelines
 Disposable Experimentation
Why Git?
 Branching and Merging
 Small and Fast
 Distributed
 Data Assurance
 Staging Area
 Free and Open Source
Small and Fast
 Nearly all operations are performed locally
 Git is written in C
Why Git?
 Branching and Merging
 Small and Fast
 Distributed
 Data Assurance
 Staging Area
 Free and Open Source
Distributed
 No β€œcheckout” but β€œClone”
 Multiple Backups
 Multiple Workflows
Subversion-Style Workflow
Integration Manager Workflow
Dictator and Lieutenants Workflow
Why Git?
 Branching and Merging
 Small and Fast
 Distributed
 Data Assurance
 Staging Area
 Free and Open Source
Staging Area
 intermediate area where commits can be formatted and reviewed
before completing the commit.
 Now you can just stage the change you need for the current
commit and stage the other change for the next commit.
 to ignore this feature if you don't want that kind of control β€” just
add a '-a' β€œgit commit–a”
Installing GIT with android studio
 Download Git from http://git-scm.com/downloads
 Install git and And then
 File > Settings > Version Control > Git
Installing GIT with android studio
 VCS > Enable Version Control Integration > select "Gitβ€œ
 All files colors turned red
 Select <project/file> > VCS > Git > Add to VCS
 All files colors turned green
 Select <project/file> > Commit
 To work on android studio terminal put C:Program Files
(x86)Gitcmd into environment variables
Getting Started
 First put
 Your Identity
 $ git config --global user.name β€œfathallah"
 $ git config --global user.email fathallah@asyad.com
 --global means that this user name will be used for all projects
 $ git config –list for check your settings
 $ git help to
Getting Started
 Getting a Git Repository
 $ git init to Initializing a Repository in an Existing Directory
 Add New Files and commit
 β€œ$ git add *.c”
 β€œ$ git commit -m 'initial project versionβ€˜β€
 Cloning an Existing Repository β€œ git clone [url]”
 For cloning in specific folder β€œ git clone [url] [folder name]β€œ
The lifecycle of the status of your
files.
Checking the Status of Your Files
 $ git status
Gitignore File
 Contains all ignored files
 To Ignore files
 First line tells Git to ignore any
files ending in β€œ.o” or β€œ.a”
Commit Your Files
 git commit
 Git commit –m β€œintial commit”
Removing Files
Moving Files
Add Remote Rep
 $ git remote add pb https://github.com/paulboone/ticgit
 $ git remote add β€œshortName” β€œrep url”
 $ git remote –v list all remote urls
Fetching and Pulling from Your
Remotes
 $ git fetch [remote-name]
get all work from repo and you have to merge it manually
 $ git pull
get all work from repo and merge it
Pushing to Your Remotes
 $ git push origin master
 git push [remote-name] [branch-name]
Branching and Mergeing
 http://git-scm.com/book/en/v2/Git-Branching-Basic-Branching-
and-Merging
BitBucket vs Github
 Open-source projects
 Public and private Projects
 Switch between the two
 Pricing
Demo
Questions
Ahmed Fathallah
Junior android developer
linkedin.com/in/ahmedfathallah/
ahmedfathalla02@gmail.com

More Related Content

PPTX
Git, github and the hacktober fest
PPT
Github By Nyros Developer
PPTX
Workshop on Git and GitHub
PDF
Intro to Git & GitHub
PDF
Advance workshop on git
PPTX
Git and github fundamentals
PPTX
Git Tutorial For Beginners | What is Git and GitHub? | DevOps Tools | DevOps ...
PPTX
Git & GitLab
Git, github and the hacktober fest
Github By Nyros Developer
Workshop on Git and GitHub
Intro to Git & GitHub
Advance workshop on git
Git and github fundamentals
Git Tutorial For Beginners | What is Git and GitHub? | DevOps Tools | DevOps ...
Git & GitLab

What's hot (20)

PPTX
Git and GitHub | Concept about Git and GitHub Process | Git Process overview
PDF
Introduction to Git
ODP
Git presentation
PPTX
Git presentation
PPTX
Extra bit with git
PPTX
Git basics : a beginner's guide
PDF
Introduction To Git
PPTX
A prentation on github
PPTX
Introduction to Git and Github
PPTX
Github
PDF
Git and GitHub
KEY
The everyday developer's guide to version control with Git
PPTX
Extra bit with git
Β 
PPTX
Git commands
PPTX
Git & Github
PPTX
PPTX
Github 101 An Adventurer's Guide To Open Source
PPTX
Introduction to git and Github
PPT
Git slides
PDF
Git and GitHub | Concept about Git and GitHub Process | Git Process overview
Introduction to Git
Git presentation
Git presentation
Extra bit with git
Git basics : a beginner's guide
Introduction To Git
A prentation on github
Introduction to Git and Github
Github
Git and GitHub
The everyday developer's guide to version control with Git
Extra bit with git
Β 
Git commands
Git & Github
Github 101 An Adventurer's Guide To Open Source
Introduction to git and Github
Git slides
Ad

Viewers also liked (6)

PDF
Improve our PHP code with ideas from Functional Programming
PPT
C:\Documents And Settings\C King\My Documents\My Pictures\2010 Soccer World C...
PDF
Clean application development (talk)
PDF
Clean application development tutorial
PDF
Virtualizing Development
PDF
Build great products
Improve our PHP code with ideas from Functional Programming
C:\Documents And Settings\C King\My Documents\My Pictures\2010 Soccer World C...
Clean application development (talk)
Clean application development tutorial
Virtualizing Development
Build great products
Ad

Similar to Introduction to git (20)

PPTX
Git and Github
PPTX
Git and github
PDF
Git Commands Every Developer Should Know?
PPTX
Git Ninja KT (GitHub to GitLab)
DOCX
Git github
PPTX
Hacktoberfest intro to Git and GitHub
PPTX
Git Series - Part 1
PDF
PPTX
Mini-training: Let’s Git It!
DOCX
setting up a repository using GIT
PPT
GIT By Sivakrishna
PPTX
GitHub and Open Source - GDGoC MIT Anna University
PDF
Git basic introduction & tutorial for begginer
PPTX
git github PPT_GDSCIIITK.pptx
ODP
Git Workshop : Getting Started
PPTX
Introduction To Git Workshop
PPTX
Git training (basic)
ODP
GIT from n00b
PPTX
Git and Github
Git and github
Git Commands Every Developer Should Know?
Git Ninja KT (GitHub to GitLab)
Git github
Hacktoberfest intro to Git and GitHub
Git Series - Part 1
Mini-training: Let’s Git It!
setting up a repository using GIT
GIT By Sivakrishna
GitHub and Open Source - GDGoC MIT Anna University
Git basic introduction & tutorial for begginer
git github PPT_GDSCIIITK.pptx
Git Workshop : Getting Started
Introduction To Git Workshop
Git training (basic)
GIT from n00b

Recently uploaded (20)

PDF
FINAL CALL-6th International Conference on Networks & IOT (NeTIOT 2025)
PPTX
Internet___Basics___Styled_ presentation
PDF
RPKI Status Update, presented by Makito Lay at IDNOG 10
Β 
PPTX
Slides PPTX World Game (s) Eco Economic Epochs.pptx
PDF
The New Creative Director: How AI Tools for Social Media Content Creation Are...
PDF
Paper PDF World Game (s) Great Redesign.pdf
PPTX
introduction about ICD -10 & ICD-11 ppt.pptx
PPTX
Digital Literacy And Online Safety on internet
PPTX
artificial intelligence overview of it and more
PDF
Vigrab.top – Online Tool for Downloading and Converting Social Media Videos a...
PPTX
presentation_pfe-universite-molay-seltan.pptx
PDF
How to Ensure Data Integrity During Shopify Migration_ Best Practices for Sec...
PDF
Best Practices for Testing and Debugging Shopify Third-Party API Integrations...
PDF
The Internet -By the Numbers, Sri Lanka Edition
Β 
PDF
An introduction to the IFRS (ISSB) Stndards.pdf
PDF
πŸ’° π”πŠπ“πˆ πŠπ„πŒπ„ππ€ππ†π€π πŠπˆππ„π‘πŸ’πƒ π‡π€π‘πˆ 𝐈𝐍𝐈 πŸπŸŽπŸπŸ“ πŸ’°
Β 
PDF
Sims 4 Historia para lo sims 4 para jugar
PDF
SASE Traffic Flow - ZTNA Connector-1.pdf
PDF
Cloud-Scale Log Monitoring _ Datadog.pdf
PPTX
June-4-Sermon-Powerpoint.pptx USE THIS FOR YOUR MOTIVATION
FINAL CALL-6th International Conference on Networks & IOT (NeTIOT 2025)
Internet___Basics___Styled_ presentation
RPKI Status Update, presented by Makito Lay at IDNOG 10
Β 
Slides PPTX World Game (s) Eco Economic Epochs.pptx
The New Creative Director: How AI Tools for Social Media Content Creation Are...
Paper PDF World Game (s) Great Redesign.pdf
introduction about ICD -10 & ICD-11 ppt.pptx
Digital Literacy And Online Safety on internet
artificial intelligence overview of it and more
Vigrab.top – Online Tool for Downloading and Converting Social Media Videos a...
presentation_pfe-universite-molay-seltan.pptx
How to Ensure Data Integrity During Shopify Migration_ Best Practices for Sec...
Best Practices for Testing and Debugging Shopify Third-Party API Integrations...
The Internet -By the Numbers, Sri Lanka Edition
Β 
An introduction to the IFRS (ISSB) Stndards.pdf
πŸ’° π”πŠπ“πˆ πŠπ„πŒπ„ππ€ππ†π€π πŠπˆππ„π‘πŸ’πƒ π‡π€π‘πˆ 𝐈𝐍𝐈 πŸπŸŽπŸπŸ“ πŸ’°
Β 
Sims 4 Historia para lo sims 4 para jugar
SASE Traffic Flow - ZTNA Connector-1.pdf
Cloud-Scale Log Monitoring _ Datadog.pdf
June-4-Sermon-Powerpoint.pptx USE THIS FOR YOUR MOTIVATION

Introduction to git

  • 2. What is GIT?  Git is a free and open source distributed version control system designed to handle everything from small to very large projects with speed and efficiency.
  • 3. Why Git?  Branching and Merging  Small and Fast  Distributed  Data Assurance  Staging Area  Free and Open Source
  • 4. Branching and Merging  multiple local branches  Frictionless Context Switching  Role-Based Codelines  Disposable Experimentation
  • 5. Why Git?  Branching and Merging  Small and Fast  Distributed  Data Assurance  Staging Area  Free and Open Source
  • 6. Small and Fast  Nearly all operations are performed locally  Git is written in C
  • 7. Why Git?  Branching and Merging  Small and Fast  Distributed  Data Assurance  Staging Area  Free and Open Source
  • 8. Distributed  No β€œcheckout” but β€œClone”  Multiple Backups  Multiple Workflows
  • 12. Why Git?  Branching and Merging  Small and Fast  Distributed  Data Assurance  Staging Area  Free and Open Source
  • 13. Staging Area  intermediate area where commits can be formatted and reviewed before completing the commit.  Now you can just stage the change you need for the current commit and stage the other change for the next commit.  to ignore this feature if you don't want that kind of control β€” just add a '-a' β€œgit commit–a”
  • 14. Installing GIT with android studio  Download Git from http://git-scm.com/downloads  Install git and And then  File > Settings > Version Control > Git
  • 15. Installing GIT with android studio  VCS > Enable Version Control Integration > select "Gitβ€œ  All files colors turned red  Select <project/file> > VCS > Git > Add to VCS  All files colors turned green  Select <project/file> > Commit  To work on android studio terminal put C:Program Files (x86)Gitcmd into environment variables
  • 16. Getting Started  First put  Your Identity  $ git config --global user.name β€œfathallah"  $ git config --global user.email fathallah@asyad.com  --global means that this user name will be used for all projects  $ git config –list for check your settings  $ git help to
  • 17. Getting Started  Getting a Git Repository  $ git init to Initializing a Repository in an Existing Directory  Add New Files and commit  β€œ$ git add *.c”  β€œ$ git commit -m 'initial project versionβ€˜β€  Cloning an Existing Repository β€œ git clone [url]”  For cloning in specific folder β€œ git clone [url] [folder name]β€œ
  • 18. The lifecycle of the status of your files.
  • 19. Checking the Status of Your Files  $ git status
  • 20. Gitignore File  Contains all ignored files  To Ignore files  First line tells Git to ignore any files ending in β€œ.o” or β€œ.a”
  • 21. Commit Your Files  git commit  Git commit –m β€œintial commit”
  • 24. Add Remote Rep  $ git remote add pb https://github.com/paulboone/ticgit  $ git remote add β€œshortName” β€œrep url”  $ git remote –v list all remote urls
  • 25. Fetching and Pulling from Your Remotes  $ git fetch [remote-name] get all work from repo and you have to merge it manually  $ git pull get all work from repo and merge it
  • 26. Pushing to Your Remotes  $ git push origin master  git push [remote-name] [branch-name]
  • 27. Branching and Mergeing  http://git-scm.com/book/en/v2/Git-Branching-Basic-Branching- and-Merging
  • 28. BitBucket vs Github  Open-source projects  Public and private Projects  Switch between the two  Pricing
  • 29. Demo
  • 31. Ahmed Fathallah Junior android developer linkedin.com/in/ahmedfathallah/ ahmedfathalla02@gmail.com