Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. The Lounge
  3. Git checkout command is confusing me

Git checkout command is confusing me

Scheduled Pinned Locked Moved The Lounge
questionc++collaborationlearning
14 Posts 8 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • G GuyThiebaut

    Except when you check out that book what happens is that the librarian creates an exact duplicate for you to borrow. When you bring the book back the librarian then has to find the book on the shelf and duplicate all the crumpled pages, missing pages, dog ears and notes you have put in the margin of the page. Woe betide should you have borrowed the same book at the same time as someone else and both added different notes to the same page or crumpled the same page in a different manner. Now when you check the book in the librarian has to figure out whether your page crumple or that of the other person should be applied to the book being held in stock. I feel sorry for librarians.

    “That which can be asserted without evidence, can be dismissed without evidence.”

    ― Christopher Hitchens

    R Offline
    R Offline
    Rage
    wrote on last edited by
    #5

    GuyThiebaut wrote:

    I feel sorry for librarians.

    Been doing this = managing the main source code stream for several years in a team of more than 50 people. Never again. Librarian is highly interesting since you are the one knowing every single part of the code after some time, but resolving conflicts, in the code while merging and of course among the developers in the team, is exhausting.

    Do not escape reality : improve reality !

    G 1 Reply Last reply
    0
    • R Rage

      GuyThiebaut wrote:

      I feel sorry for librarians.

      Been doing this = managing the main source code stream for several years in a team of more than 50 people. Never again. Librarian is highly interesting since you are the one knowing every single part of the code after some time, but resolving conflicts, in the code while merging and of course among the developers in the team, is exhausting.

      Do not escape reality : improve reality !

      G Offline
      G Offline
      GuyThiebaut
      wrote on last edited by
      #6

      You have my sympathy and respect. Fortunately where I work we commit and merge our own changes, so we are personally responsible for resolving merge conflicts. I can imagine that having to resolve other people's merge conflicts is no easy task.

      “That which can be asserted without evidence, can be dismissed without evidence.”

      ― Christopher Hitchens

      1 Reply Last reply
      0
      • G GuyThiebaut

        Except when you check out that book what happens is that the librarian creates an exact duplicate for you to borrow. When you bring the book back the librarian then has to find the book on the shelf and duplicate all the crumpled pages, missing pages, dog ears and notes you have put in the margin of the page. Woe betide should you have borrowed the same book at the same time as someone else and both added different notes to the same page or crumpled the same page in a different manner. Now when you check the book in the librarian has to figure out whether your page crumple or that of the other person should be applied to the book being held in stock. I feel sorry for librarians.

        “That which can be asserted without evidence, can be dismissed without evidence.”

        ― Christopher Hitchens

        OriginalGriffO Offline
        OriginalGriffO Offline
        OriginalGriff
        wrote on last edited by
        #7

        Yeah - but I was trying to reduce his confusion! :laugh:

        Sent from my Amstrad PC 1640 Never throw anything away, Griff Bad command or file name. Bad, bad command! Sit! Stay! Staaaay... AntiTwitter: @DalekDave is now a follower!

        "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
        "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt

        1 Reply Last reply
        0
        • N Nikunj_Bhatt

          Preface: I am learning Git (since some years ;-), very slowly) and English is not my native language. So, I don't know that what I believe about 'check-in' and 'check-out' is correct in English or not. If I am in/on a Git branch, shouldn't it be called 'checked in branch' instead of 'checked out branch'? If I 'checkout' (from) a branch then shouldn't it actually get me out of that branch? And what is the command to 'get out from current branch'? Is it possible that I am not in/on any Git branch?

          M Offline
          M Offline
          Maximilien
          wrote on last edited by
          #8

          Nikunj_Bhatt wrote:

          And what is the command to 'get out from current branch'?

          make a backup and : format c: This will clean git from your computer.

          I'd rather be phishing!

          CPalliniC 1 Reply Last reply
          0
          • M Maximilien

            Nikunj_Bhatt wrote:

            And what is the command to 'get out from current branch'?

            make a backup and : format c: This will clean git from your computer.

            I'd rather be phishing!

            CPalliniC Offline
            CPalliniC Offline
            CPallini
            wrote on last edited by
            #9

            format c:
            sh: format: not found

            ;P ;P ;P

            In testa che avete, signor di Ceprano?

            N 1 Reply Last reply
            0
            • CPalliniC CPallini

              format c:
              sh: format: not found

              ;P ;P ;P

              N Offline
              N Offline
              Nikunj_Bhatt
              wrote on last edited by
              #10

              :-D Really, I am using Fedora!

              CPalliniC 1 Reply Last reply
              0
              • N Nikunj_Bhatt

                :-D Really, I am using Fedora!

                CPalliniC Offline
                CPalliniC Offline
                CPallini
                wrote on last edited by
                #11

                Those Windows folks... Cannot even imagine there is a bright side in the world. :-D

                In testa che avete, signor di Ceprano?

                1 Reply Last reply
                0
                • OriginalGriffO OriginalGriff

                  It's like a library: you join the library, and they give you a membership ticket. You want a book, you hand it and the ticket to the librarian and she records that you have it and you can take it away to read. When you are finished, you return the book and she records against your ticket that you returned the book. Getting the book is called "checking out", returning it is called "checking in". These terms have been used for hundreds - possibly thousands! - of years, and they refer to historical usage when the identity of the book was physically checked against the records and your library ticket. When source control was invented, these terms were adopted for pretty much the same events: to get a copy of the code, you "checked out" the branch. When you are done modifying, you "checked in" your changes. English can be a strange language, and you shouldn't take technical terms too literally! :laugh:

                  Sent from my Amstrad PC 1640 Never throw anything away, Griff Bad command or file name. Bad, bad command! Sit! Stay! Staaaay... AntiTwitter: @DalekDave is now a follower!

                  N Offline
                  N Offline
                  Nikunj_Bhatt
                  wrote on last edited by
                  #12

                  OriginalGriff wrote:

                  Getting the book is called "checking out", returning it is called "checking in".

                  Oh, I thought Git like checking-into the library (e.g. checking in hotel, airport) rather than getting a book from the library. A matter of different perspective.

                  OriginalGriff wrote:

                  English can be a strange language, and you shouldn't take technical terms too literally!

                  English is certainly strange, especially to the people like me if(native_language != English || who_thinks_more_logically).

                  OriginalGriffO 1 Reply Last reply
                  0
                  • N Nikunj_Bhatt

                    OriginalGriff wrote:

                    Getting the book is called "checking out", returning it is called "checking in".

                    Oh, I thought Git like checking-into the library (e.g. checking in hotel, airport) rather than getting a book from the library. A matter of different perspective.

                    OriginalGriff wrote:

                    English can be a strange language, and you shouldn't take technical terms too literally!

                    English is certainly strange, especially to the people like me if(native_language != English || who_thinks_more_logically).

                    OriginalGriffO Offline
                    OriginalGriffO Offline
                    OriginalGriff
                    wrote on last edited by
                    #13

                    Shops (even online ones) use the same terminology: you "go to the checkout" to pay for your goods, and then leave or they are dispatched. And if you think English is strange, don't even glance in the direction of Welsh! :laugh:

                    Sent from my Amstrad PC 1640 Never throw anything away, Griff Bad command or file name. Bad, bad command! Sit! Stay! Staaaay... AntiTwitter: @DalekDave is now a follower!

                    "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
                    "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt

                    1 Reply Last reply
                    0
                    • N Nikunj_Bhatt

                      Preface: I am learning Git (since some years ;-), very slowly) and English is not my native language. So, I don't know that what I believe about 'check-in' and 'check-out' is correct in English or not. If I am in/on a Git branch, shouldn't it be called 'checked in branch' instead of 'checked out branch'? If I 'checkout' (from) a branch then shouldn't it actually get me out of that branch? And what is the command to 'get out from current branch'? Is it possible that I am not in/on any Git branch?

                      M Offline
                      M Offline
                      Mark_Wallace
                      wrote on last edited by
                      #14

                      It's not you who checks in/out, it's the files.

                      I wanna be a eunuchs developer! Pass me a bread knife!

                      1 Reply Last reply
                      0
                      Reply
                      • Reply as topic
                      Log in to reply
                      • Oldest to Newest
                      • Newest to Oldest
                      • Most Votes


                      • Login

                      • Don't have an account? Register

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • World
                      • Users
                      • Groups