SlideShare a Scribd company logo
1 of 31
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

What's hot (20)

Git and GitHub | Concept about Git and GitHub Process | Git Process overview
Git and GitHub | Concept about Git and GitHub Process | Git Process overviewGit and GitHub | Concept about Git and GitHub Process | Git Process overview
Git and GitHub | Concept about Git and GitHub Process | Git Process overview
 
Introduction to Git
Introduction to GitIntroduction to Git
Introduction to Git
 
Git presentation
Git presentationGit presentation
Git presentation
 
Git presentation
Git presentationGit presentation
Git presentation
 
Extra bit with git
Extra bit with gitExtra bit with git
Extra bit with git
 
Git basics : a beginner's guide
Git basics : a beginner's guideGit basics : a beginner's guide
Git basics : a beginner's guide
 
Introduction To Git
Introduction To GitIntroduction To Git
Introduction To Git
 
A prentation on github
A prentation on githubA prentation on github
A prentation on github
 
Introduction to Git and Github
Introduction to Git and GithubIntroduction to Git and Github
Introduction to Git and Github
 
Github
GithubGithub
Github
 
Git and GitHub
Git and GitHubGit and GitHub
Git and GitHub
 
The everyday developer's guide to version control with Git
The everyday developer's guide to version control with GitThe everyday developer's guide to version control with Git
The everyday developer's guide to version control with Git
 
Extra bit with git
Extra bit with gitExtra bit with git
Extra bit with git
 
Git commands
Git commandsGit commands
Git commands
 
Git & Github
Git & GithubGit & Github
Git & Github
 
Intro to Git & GitHub
Intro to Git & GitHubIntro to Git & GitHub
Intro to Git & GitHub
 
Github 101 An Adventurer's Guide To Open Source
Github 101   An Adventurer's Guide To Open SourceGithub 101   An Adventurer's Guide To Open Source
Github 101 An Adventurer's Guide To Open Source
 
Introduction to git and Github
Introduction to git and GithubIntroduction to git and Github
Introduction to git and Github
 
Git slides
Git slidesGit slides
Git slides
 
Git
GitGit
Git
 

Viewers also liked

Improve our PHP code with ideas from Functional Programming
Improve our PHP code with ideas from Functional ProgrammingImprove our PHP code with ideas from Functional Programming
Improve our PHP code with ideas from Functional ProgrammingHerman Peeren
 
C:\Documents And Settings\C King\My Documents\My Pictures\2010 Soccer World C...
C:\Documents And Settings\C King\My Documents\My Pictures\2010 Soccer World C...C:\Documents And Settings\C King\My Documents\My Pictures\2010 Soccer World C...
C:\Documents And Settings\C King\My Documents\My Pictures\2010 Soccer World C...Cheryl King
 
Clean application development (talk)
Clean application development (talk)Clean application development (talk)
Clean application development (talk)Adam Culp
 
Clean application development tutorial
Clean application development tutorialClean application development tutorial
Clean application development tutorialAdam Culp
 
Virtualizing Development
Virtualizing DevelopmentVirtualizing Development
Virtualizing DevelopmentAdam Culp
 
Build great products
Build great productsBuild great products
Build great productsAdam Culp
 

Viewers also liked (6)

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

Similar to Introduction to git (20)

Git and Github
Git and GithubGit and Github
Git and Github
 
Git and github
Git and githubGit and github
Git and github
 
Git introduction
Git introductionGit introduction
Git introduction
 
Git Commands Every Developer Should Know?
Git Commands Every Developer Should Know?Git Commands Every Developer Should Know?
Git Commands Every Developer Should Know?
 
Git Ninja KT (GitHub to GitLab)
Git Ninja KT (GitHub to GitLab)Git Ninja KT (GitHub to GitLab)
Git Ninja KT (GitHub to GitLab)
 
Git github
Git githubGit github
Git github
 
Hacktoberfest intro to Git and GitHub
Hacktoberfest intro to Git and GitHubHacktoberfest intro to Git and GitHub
Hacktoberfest intro to Git and GitHub
 
Git Series - Part 1
Git Series - Part 1 Git Series - Part 1
Git Series - Part 1
 
Git
GitGit
Git
 
Mini-training: Let’s Git It!
Mini-training: Let’s Git It!Mini-training: Let’s Git It!
Mini-training: Let’s Git It!
 
setting up a repository using GIT
setting up a repository using GITsetting up a repository using GIT
setting up a repository using GIT
 
GIT By Sivakrishna
GIT By SivakrishnaGIT By Sivakrishna
GIT By Sivakrishna
 
git github PPT_GDSCIIITK.pptx
git github PPT_GDSCIIITK.pptxgit github PPT_GDSCIIITK.pptx
git github PPT_GDSCIIITK.pptx
 
Git Workshop : Getting Started
Git Workshop : Getting StartedGit Workshop : Getting Started
Git Workshop : Getting Started
 
Introduction To Git Workshop
Introduction To Git WorkshopIntroduction To Git Workshop
Introduction To Git Workshop
 
Git training (basic)
Git training (basic)Git training (basic)
Git training (basic)
 
GIT from n00b
GIT from n00bGIT from n00b
GIT from n00b
 
Git
GitGit
Git
 
Intro to Git, GitHub, and BitBucket
Intro to Git, GitHub, and BitBucketIntro to Git, GitHub, and BitBucket
Intro to Git, GitHub, and BitBucket
 
Git from the trenches
Git from the trenchesGit from the trenches
Git from the trenches
 

Recently uploaded

'Future Evolution of the Internet' delivered by Geoff Huston at Everything Op...
'Future Evolution of the Internet' delivered by Geoff Huston at Everything Op...'Future Evolution of the Internet' delivered by Geoff Huston at Everything Op...
'Future Evolution of the Internet' delivered by Geoff Huston at Everything Op...APNIC
 
Pune Airport ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready...
Pune Airport ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready...Pune Airport ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready...
Pune Airport ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready...tanu pandey
 
How is AI changing journalism? (v. April 2024)
How is AI changing journalism? (v. April 2024)How is AI changing journalism? (v. April 2024)
How is AI changing journalism? (v. April 2024)Damian Radcliffe
 
Call Girls In Saket Delhi 💯Call Us 🔝8264348440🔝
Call Girls In Saket Delhi 💯Call Us 🔝8264348440🔝Call Girls In Saket Delhi 💯Call Us 🔝8264348440🔝
Call Girls In Saket Delhi 💯Call Us 🔝8264348440🔝soniya singh
 
Call Girls In Defence Colony Delhi 💯Call Us 🔝8264348440🔝
Call Girls In Defence Colony Delhi 💯Call Us 🔝8264348440🔝Call Girls In Defence Colony Delhi 💯Call Us 🔝8264348440🔝
Call Girls In Defence Colony Delhi 💯Call Us 🔝8264348440🔝soniya singh
 
Call Girls In Ashram Chowk Delhi 💯Call Us 🔝8264348440🔝
Call Girls In Ashram Chowk Delhi 💯Call Us 🔝8264348440🔝Call Girls In Ashram Chowk Delhi 💯Call Us 🔝8264348440🔝
Call Girls In Ashram Chowk Delhi 💯Call Us 🔝8264348440🔝soniya singh
 
Delhi Call Girls Rohini 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls Rohini 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip CallDelhi Call Girls Rohini 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls Rohini 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Callshivangimorya083
 
GDG Cloud Southlake 32: Kyle Hettinger: Demystifying the Dark Web
GDG Cloud Southlake 32: Kyle Hettinger: Demystifying the Dark WebGDG Cloud Southlake 32: Kyle Hettinger: Demystifying the Dark Web
GDG Cloud Southlake 32: Kyle Hettinger: Demystifying the Dark WebJames Anderson
 
Lucknow ❤CALL GIRL 88759*99948 ❤CALL GIRLS IN Lucknow ESCORT SERVICE❤CALL GIRL
Lucknow ❤CALL GIRL 88759*99948 ❤CALL GIRLS IN Lucknow ESCORT SERVICE❤CALL GIRLLucknow ❤CALL GIRL 88759*99948 ❤CALL GIRLS IN Lucknow ESCORT SERVICE❤CALL GIRL
Lucknow ❤CALL GIRL 88759*99948 ❤CALL GIRLS IN Lucknow ESCORT SERVICE❤CALL GIRLimonikaupta
 
Best VIP Call Girls Noida Sector 75 Call Me: 8448380779
Best VIP Call Girls Noida Sector 75 Call Me: 8448380779Best VIP Call Girls Noida Sector 75 Call Me: 8448380779
Best VIP Call Girls Noida Sector 75 Call Me: 8448380779Delhi Call girls
 
Moving Beyond Twitter/X and Facebook - Social Media for local news providers
Moving Beyond Twitter/X and Facebook - Social Media for local news providersMoving Beyond Twitter/X and Facebook - Social Media for local news providers
Moving Beyond Twitter/X and Facebook - Social Media for local news providersDamian Radcliffe
 
DDoS In Oceania and the Pacific, presented by Dave Phelan at NZNOG 2024
DDoS In Oceania and the Pacific, presented by Dave Phelan at NZNOG 2024DDoS In Oceania and the Pacific, presented by Dave Phelan at NZNOG 2024
DDoS In Oceania and the Pacific, presented by Dave Phelan at NZNOG 2024APNIC
 
Call Girls In Sukhdev Vihar Delhi 💯Call Us 🔝8264348440🔝
Call Girls In Sukhdev Vihar Delhi 💯Call Us 🔝8264348440🔝Call Girls In Sukhdev Vihar Delhi 💯Call Us 🔝8264348440🔝
Call Girls In Sukhdev Vihar Delhi 💯Call Us 🔝8264348440🔝soniya singh
 
Call Girls Dubai Prolapsed O525547819 Call Girls In Dubai Princes$
Call Girls Dubai Prolapsed O525547819 Call Girls In Dubai Princes$Call Girls Dubai Prolapsed O525547819 Call Girls In Dubai Princes$
Call Girls Dubai Prolapsed O525547819 Call Girls In Dubai Princes$kojalkojal131
 
Call Girls In Pratap Nagar Delhi 💯Call Us 🔝8264348440🔝
Call Girls In Pratap Nagar Delhi 💯Call Us 🔝8264348440🔝Call Girls In Pratap Nagar Delhi 💯Call Us 🔝8264348440🔝
Call Girls In Pratap Nagar Delhi 💯Call Us 🔝8264348440🔝soniya singh
 
Russian Call girl in Ajman +971563133746 Ajman Call girl Service
Russian Call girl in Ajman +971563133746 Ajman Call girl ServiceRussian Call girl in Ajman +971563133746 Ajman Call girl Service
Russian Call girl in Ajman +971563133746 Ajman Call girl Servicegwenoracqe6
 

Recently uploaded (20)

'Future Evolution of the Internet' delivered by Geoff Huston at Everything Op...
'Future Evolution of the Internet' delivered by Geoff Huston at Everything Op...'Future Evolution of the Internet' delivered by Geoff Huston at Everything Op...
'Future Evolution of the Internet' delivered by Geoff Huston at Everything Op...
 
@9999965857 🫦 Sexy Desi Call Girls Laxmi Nagar 💓 High Profile Escorts Delhi 🫶
@9999965857 🫦 Sexy Desi Call Girls Laxmi Nagar 💓 High Profile Escorts Delhi 🫶@9999965857 🫦 Sexy Desi Call Girls Laxmi Nagar 💓 High Profile Escorts Delhi 🫶
@9999965857 🫦 Sexy Desi Call Girls Laxmi Nagar 💓 High Profile Escorts Delhi 🫶
 
Pune Airport ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready...
Pune Airport ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready...Pune Airport ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready...
Pune Airport ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready...
 
How is AI changing journalism? (v. April 2024)
How is AI changing journalism? (v. April 2024)How is AI changing journalism? (v. April 2024)
How is AI changing journalism? (v. April 2024)
 
Rohini Sector 26 Call Girls Delhi 9999965857 @Sabina Saikh No Advance
Rohini Sector 26 Call Girls Delhi 9999965857 @Sabina Saikh No AdvanceRohini Sector 26 Call Girls Delhi 9999965857 @Sabina Saikh No Advance
Rohini Sector 26 Call Girls Delhi 9999965857 @Sabina Saikh No Advance
 
Call Girls In Saket Delhi 💯Call Us 🔝8264348440🔝
Call Girls In Saket Delhi 💯Call Us 🔝8264348440🔝Call Girls In Saket Delhi 💯Call Us 🔝8264348440🔝
Call Girls In Saket Delhi 💯Call Us 🔝8264348440🔝
 
VVVIP Call Girls In Connaught Place ➡️ Delhi ➡️ 9999965857 🚀 No Advance 24HRS...
VVVIP Call Girls In Connaught Place ➡️ Delhi ➡️ 9999965857 🚀 No Advance 24HRS...VVVIP Call Girls In Connaught Place ➡️ Delhi ➡️ 9999965857 🚀 No Advance 24HRS...
VVVIP Call Girls In Connaught Place ➡️ Delhi ➡️ 9999965857 🚀 No Advance 24HRS...
 
Call Girls In Defence Colony Delhi 💯Call Us 🔝8264348440🔝
Call Girls In Defence Colony Delhi 💯Call Us 🔝8264348440🔝Call Girls In Defence Colony Delhi 💯Call Us 🔝8264348440🔝
Call Girls In Defence Colony Delhi 💯Call Us 🔝8264348440🔝
 
Call Girls In Ashram Chowk Delhi 💯Call Us 🔝8264348440🔝
Call Girls In Ashram Chowk Delhi 💯Call Us 🔝8264348440🔝Call Girls In Ashram Chowk Delhi 💯Call Us 🔝8264348440🔝
Call Girls In Ashram Chowk Delhi 💯Call Us 🔝8264348440🔝
 
Delhi Call Girls Rohini 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls Rohini 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip CallDelhi Call Girls Rohini 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls Rohini 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
 
GDG Cloud Southlake 32: Kyle Hettinger: Demystifying the Dark Web
GDG Cloud Southlake 32: Kyle Hettinger: Demystifying the Dark WebGDG Cloud Southlake 32: Kyle Hettinger: Demystifying the Dark Web
GDG Cloud Southlake 32: Kyle Hettinger: Demystifying the Dark Web
 
Lucknow ❤CALL GIRL 88759*99948 ❤CALL GIRLS IN Lucknow ESCORT SERVICE❤CALL GIRL
Lucknow ❤CALL GIRL 88759*99948 ❤CALL GIRLS IN Lucknow ESCORT SERVICE❤CALL GIRLLucknow ❤CALL GIRL 88759*99948 ❤CALL GIRLS IN Lucknow ESCORT SERVICE❤CALL GIRL
Lucknow ❤CALL GIRL 88759*99948 ❤CALL GIRLS IN Lucknow ESCORT SERVICE❤CALL GIRL
 
Dwarka Sector 26 Call Girls | Delhi | 9999965857 🫦 Vanshika Verma More Our Se...
Dwarka Sector 26 Call Girls | Delhi | 9999965857 🫦 Vanshika Verma More Our Se...Dwarka Sector 26 Call Girls | Delhi | 9999965857 🫦 Vanshika Verma More Our Se...
Dwarka Sector 26 Call Girls | Delhi | 9999965857 🫦 Vanshika Verma More Our Se...
 
Best VIP Call Girls Noida Sector 75 Call Me: 8448380779
Best VIP Call Girls Noida Sector 75 Call Me: 8448380779Best VIP Call Girls Noida Sector 75 Call Me: 8448380779
Best VIP Call Girls Noida Sector 75 Call Me: 8448380779
 
Moving Beyond Twitter/X and Facebook - Social Media for local news providers
Moving Beyond Twitter/X and Facebook - Social Media for local news providersMoving Beyond Twitter/X and Facebook - Social Media for local news providers
Moving Beyond Twitter/X and Facebook - Social Media for local news providers
 
DDoS In Oceania and the Pacific, presented by Dave Phelan at NZNOG 2024
DDoS In Oceania and the Pacific, presented by Dave Phelan at NZNOG 2024DDoS In Oceania and the Pacific, presented by Dave Phelan at NZNOG 2024
DDoS In Oceania and the Pacific, presented by Dave Phelan at NZNOG 2024
 
Call Girls In Sukhdev Vihar Delhi 💯Call Us 🔝8264348440🔝
Call Girls In Sukhdev Vihar Delhi 💯Call Us 🔝8264348440🔝Call Girls In Sukhdev Vihar Delhi 💯Call Us 🔝8264348440🔝
Call Girls In Sukhdev Vihar Delhi 💯Call Us 🔝8264348440🔝
 
Call Girls Dubai Prolapsed O525547819 Call Girls In Dubai Princes$
Call Girls Dubai Prolapsed O525547819 Call Girls In Dubai Princes$Call Girls Dubai Prolapsed O525547819 Call Girls In Dubai Princes$
Call Girls Dubai Prolapsed O525547819 Call Girls In Dubai Princes$
 
Call Girls In Pratap Nagar Delhi 💯Call Us 🔝8264348440🔝
Call Girls In Pratap Nagar Delhi 💯Call Us 🔝8264348440🔝Call Girls In Pratap Nagar Delhi 💯Call Us 🔝8264348440🔝
Call Girls In Pratap Nagar Delhi 💯Call Us 🔝8264348440🔝
 
Russian Call girl in Ajman +971563133746 Ajman Call girl Service
Russian Call girl in Ajman +971563133746 Ajman Call girl ServiceRussian Call girl in Ajman +971563133746 Ajman Call girl Service
Russian Call girl in Ajman +971563133746 Ajman Call girl Service
 

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