Origin master

Description

This is a brief example which shows the everyday collaboration between local (computer running) and remote (github in this case) repos.
Kostas Diakogiannis
Mind Map by Kostas Diakogiannis, updated more than 1 year ago
Kostas Diakogiannis
Created by Kostas Diakogiannis over 6 years ago
38
1

Resource summary

Origin master

Annotations:

  • The github remote repository. Where all the code is stored and where all the local users that are collaborators are pushing code and pulling code from. It comes by default with a master branch, and in order to have access to it you must put *git remote add origin * so you can start pushing and pulling from there.It may contains also branches but these are not downloaded automatically.
  1. Jake's local master

    Annotations:

    • The master branch of your local git repo. It comes natively once you type git init.  From this place you can interact with other local branches and also with the remote master via pulling and pushing. Important Note: Always inform your colleagues before touching the master, applying changes to it, rewritting history or updating the state with new changes via pull and push.
    1. Jake's local branch

      Annotations:

      • Here the user an experiment freely as he pleases. Play with features, rewrite history without fear and test new stuff to see if it works.  In order to save his code, the programmer can push his code either to master remote branch (not recommended at all!!!) or to a remote branch that will be created on github.  The latter can also be done automatically when during the first push and while in branch the user types *git push --set-upstream origin .  After the first push, you can type just git push and automatically git finds it's way to remote repository.
      1. Jake's origin branch

        Annotations:

        • One of the remote branches.  Exactly like local branches those branches are copies of the master branch of the remote repository.  People who have created branches into their own computers can freely interact with those remote branches in order to have a safe place to push code there and make progress to their code without even touching the master neither locally nor in remote.
    2. Mauro's local master

      Annotations:

      • The master branch of your local git repo. It comes natively once you type git init. 
      1. Mauro's local branch

        Annotations:

        • Here the user an experiment freely as he pleases. Play with features, rewrite history without fear and test new stuff to see if it works.  In order to save his code, the programmer can push his code either to master remote branch (not recommended at all!!!) or to a remote branch that will be created on github.  The latter can also be done automatically when during the first push and while in branch the user types *git push --set-upstream origin .  After the first push, you can type just git push and automatically git finds it's way to remote repository.
        1. Mauro's origin branch

          Annotations:

          • One of the remote branches.  Exactly like local branches those branches are copies of the master branch of the remote repository.  People who have created branches into their own computers can freely interact with those remote branches in order to have a safe place to push code there and make progress to their code without even touching the master neither locally nor in remote.
      2. Meir's local master

        Annotations:

        • The master branch of your local git repo. It comes natively once you type git init. 
        1. Meir's local branch

          Annotations:

          • Here the user an experiment freely as he pleases. Play with features, rewrite history without fear and test new stuff to see if it works.  In order to save his code, the programmer can push his code either to master remote branch (not recommended at all!!!) or to a remote branch that will be created on github.  The latter can also be done automatically when during the first push and while in branch the user types *git push --set-upstream origin .  After the first push, you can type just git push and automatically git finds it's way to remote repository.
          1. Meir's origin branch

            Annotations:

            • One of the remote branches.  Exactly like local branches those branches are copies of the master branch of the remote repository.  People who have created branches into their own computers can freely interact with those remote branches in order to have a safe place to push code there and make progress to their code without even touching the master neither locally nor in remote.
        Show full summary Hide full summary

        Similar

        Git/Version Control
        Andrew Watters
        GitHub issue workflow
        Domhnall Murphy
        Git - GitHub
        Nguyet Huynh
        Estados de Git y de los Archivos
        Ray T.H.
        Git y GitHub Difference
        Ray T.H.
        GoConqr Guide to Flowcharts for Business
        Sarah Egan
        Mind Map - Branches of US Government
        midonau
        Work Breakdown Structure
        Niamh Ryan
        Unit 1 Introduction to Oceanography
        Jennifer Tuxford
        Git self assesment Quiz
        Kostas Diakogiannis