POWERED BY:
Ready, Git set … Go!
Hosted by Stennie
COMMUNITY POD
Agenda
- What is git?
- Install the git command line tool
- Create a local repository
- Stage a change
- Commit the change
Git is an open source tool for distributed version control
-
Git can also be used with a local repository
-
local
Install git
- Windows:
- https://gitforwindows.org
- macOS:
- https://git-scm.com/download/mac
(or)
- brew install git
- Linux:
- RHEL/CentOS: sudo dnf install git
- Ubuntu/Debian: sudo apt-get install git
Let’s try a few commands
- git --help
- git help glossary
- git help core-tutorial
Create a local repository
- mkdir gitset
- cd gitset
- git init
What just happened?
- List the contents of this directory. Notice anything new?
- Try:
- git status
- What does `On branch master` mean?
Branches encourage experimentation and collaboration
-
Create a file
- Create a README.txt file
- git status
Development workflow
-
Stage the change
- git add README.txt
- git status
- git diff
Development workflow
-
Commit the change
- EDITOR=nano
^^^ this step is optional but recommended if you are new
to command line editors.
- git commit
- git status
- git log
Resources
- Pro Git Book (free): https://git-scm.com/book/
- GitHub.com (free tier): Unlimited public repositories,
unlimited private repositories (up to 3 collaborators).
- Bitbucket.org (free tier): Unlimited public repositories,
unlimited private repositories (up to 5 collaborator).

MongoDB World 2019 Builder's Fest - Ready, Git set ... Go!

  • 1.
    POWERED BY: Ready, Gitset … Go! Hosted by Stennie COMMUNITY POD
  • 2.
    Agenda - What isgit? - Install the git command line tool - Create a local repository - Stage a change - Commit the change
  • 3.
    Git is anopen source tool for distributed version control -
  • 4.
    Git can alsobe used with a local repository - local
  • 5.
    Install git - Windows: -https://gitforwindows.org - macOS: - https://git-scm.com/download/mac (or) - brew install git - Linux: - RHEL/CentOS: sudo dnf install git - Ubuntu/Debian: sudo apt-get install git
  • 6.
    Let’s try afew commands - git --help - git help glossary - git help core-tutorial
  • 7.
    Create a localrepository - mkdir gitset - cd gitset - git init
  • 8.
    What just happened? -List the contents of this directory. Notice anything new? - Try: - git status - What does `On branch master` mean?
  • 9.
  • 10.
    Create a file -Create a README.txt file - git status
  • 11.
  • 12.
    Stage the change -git add README.txt - git status - git diff
  • 13.
  • 14.
    Commit the change -EDITOR=nano ^^^ this step is optional but recommended if you are new to command line editors. - git commit - git status - git log
  • 15.
    Resources - Pro GitBook (free): https://git-scm.com/book/ - GitHub.com (free tier): Unlimited public repositories, unlimited private repositories (up to 3 collaborators). - Bitbucket.org (free tier): Unlimited public repositories, unlimited private repositories (up to 5 collaborator).