Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Introduction to Git and GitHub

Introduction to Git and GitHub

This is a brief introduction to Git, GitHub, and Git Workflows.

Destiny Ajakaiye

October 25, 2019
Tweet

More Decks by Destiny Ajakaiye

Other Decks in Technology

Transcript

  1. ABOUT ME • Destiny Ajakaiye aka Ajax I'm a Software

    Engineer based in Lagos Nigeria. I have build a comfort zone for myself around these technologies; React.js, React Native, Vue.js, Nuxt.js, Node.js & Laravel. I work remotely fulltime for a private company based in Canada. Outside work I love exercising and reading. @DestinyAjax
  2. A version control system tracks the history of changes in

    a file as people and teams collaborate on projects together. What’s a version control system?
  3. • Local version control systems • Centralized version control system

    • Distributed version control system Types of VCSs
  4. 1. Distributed version control system. 2. Its a tracker for

    tracking changes. 3. It used to cordinate work among programmers. What is Git?
  5. 1. GitHub is a code hosting platform for collaboration and

    version control. 2. GitHub is a company. 3. GitHub is a website. What is Github?
  6. A Git repository is a virtual storage of your project.

    It allows you to save versions of your code, which you can access when needed. git init What is a Repository?
  7. Branches are used to create another line of development. By

    default, Git has a master branch, which is same as trunk in Subversion. git branch new-branch git checkout new-branch What is Branching?
  8. Committing is the process in which the code is added

    to the local repository. git commit -m "Commit message here" What is a Commit?
  9. Before committing the code, it has to be in the

    staging area. The staging area is there to keep track of all the files which are to be committed. git add demo.txt git add . What is a Staging?
  10. Merge is the process of saving changes from a branch

    to another branch. Join two or more development histories together git merge topic What is a Merge?
  11. The push command pushes the code from the master branch

    in the local repository to the master branch in the remote repository. git push -u origin master What is Push?
  12. git pull is used to pull the latest changes from

    the remote repository into the local repository. git pull origin master What is Pull?
  13. git clone is used to clone an existing remote repository

    into your computer. The command for this is: git clone [repository url] What is git Clone?
  14. A Git Workflow is a recipe or recommendation for how

    to use Git to accomplish work in a consistent and productive manner. What is git workflow?