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!

Git!

Scheduled Pinned Locked Moved The Lounge
questioncollaboration
55 Posts 26 Posters 1 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.
  • N Nagy Vilmos

    Oh Jeez, how do I hate thee? Let me count the ways. 93. There are 93 different ways in which I hate GIT! I have to use the bloody thing and I'm not sure if I'm pointing to the right repo or not. Elephants! :confused: :sigh: :mad: :wtf: :beer:

    M Offline
    M Offline
    MarkTJohnson
    wrote on last edited by
    #10

    Preach it brother and all the rest who have posted! I've had something happen with "that thing" that none of the "experts"/acolytes where I work could explain why it happened. In our repository there are many directories. I was working on some files in directory A(name changed for its protection and simplicity). One of my coworkers was working on files in directory H. For the record, I didn't even know about directory H. Our files were completely disjoint. I go to commit my files by creating the commit, marking which files I want to commit, entering the commit label, etc. While doing this I see I am behind by one commit so I dutifully do the Pull. The coworker's files come down to directory H. Git then creates, on its own mind you, a second Push commit for me to merge the files I just pulled, the ones from directory H which I knew nothing about until the pull, back into the repository. I saw this one other time but the behavior seems to be random. Yes, I have contacted GitHub and they are looking at it.

    1 Reply Last reply
    0
    • M Marc Clifton

      Nagy Vilmos wrote:

      Oh Jeez, how do I hate thee? Let me count the ways.

      I completely agree. "git branch" will show all your local repo branches, the starred one is your current one. Find someone that's an expert (or use your google fu, which is what I end up doing.) "git reset --hard" quickly became my most common command after fubar'ing my local branches more than I can tell you. Are you using a GUI? There's a couple good ones out there, but even they lack. Just yesterday I had to create a new branch from a specific SHA point on an existing branch. My GUI does not support that action so I had to do it from the command line (after looking up how.) X| I'm beginning to see the "power" of it, creating local branches and doing your work locally (and disconnected even) and having it track my changes. The problem is, merging of branches sucks. Git will often report a merge conflict when there is none (other than perhaps whitespaces replaced with tabs or some such foolery) and often enough screwing up the merge, which you discover later. And I absolutely LOATHE the <<<< ==== >>>>> markup - I never understand which is mine and which is theirs, and the word "HEAD" or "MASTER" doesn't help, I have no idea who the master head is. Well, at least with regards to Git! :laugh: Marc

      M Offline
      M Offline
      MarkTJohnson
      wrote on last edited by
      #11

      We have kind of abandoned branching because it looks and feels like stuff vanishes. Programmers work with files not directory structures, Linus.

      J M P 3 Replies Last reply
      0
      • M MarkTJohnson

        We have kind of abandoned branching because it looks and feels like stuff vanishes. Programmers work with files not directory structures, Linus.

        J Offline
        J Offline
        Johnny J
        wrote on last edited by
        #12

        We have the same problem but unfortunately haven't taken any action yet. We have at least one solid example of an entire commit's code that has disappeared... :sigh:

        Anything that is unrelated to elephants is irrelephant
        Anonymous
        -----
        The problem with quotes on the internet is that you can never tell if they're genuine
        Winston Churchill, 1944
        -----
        I'd just like a chance to prove that money can't make me happy.
        Me, all the time

        1 Reply Last reply
        0
        • M MarkTJohnson

          We have kind of abandoned branching because it looks and feels like stuff vanishes. Programmers work with files not directory structures, Linus.

          M Offline
          M Offline
          Marc Clifton
          wrote on last edited by
          #13

          MarkTJohnson wrote:

          We have kind of abandoned branching because it looks and feels like stuff vanishes.

          :omg: Branching is the cornerstone of Git (and actually any VCS.) If you don't understand the minimum of how to create, switch, pull and push branches in Git, you shouldn't be using Git. Even with SVN, it's standard to create "dev, test, and prod" branches at a minimum. I'd strongly suggest that your team takes a step back and figures out at least that much of the basics of Git. Marc

          M P R 3 Replies Last reply
          0
          • N Nagy Vilmos

            Oh Jeez, how do I hate thee? Let me count the ways. 93. There are 93 different ways in which I hate GIT! I have to use the bloody thing and I'm not sure if I'm pointing to the right repo or not. Elephants! :confused: :sigh: :mad: :wtf: :beer:

            L Offline
            L Offline
            Lost User
            wrote on last edited by
            #14

            I never got into Git because the name is so stupid. I'm tired of stupid names for technology. I'm relieved that it sucks - now I can allow my curiosity die and think of it no more.

            R 1 Reply Last reply
            0
            • M Marc Clifton

              MarkTJohnson wrote:

              We have kind of abandoned branching because it looks and feels like stuff vanishes.

              :omg: Branching is the cornerstone of Git (and actually any VCS.) If you don't understand the minimum of how to create, switch, pull and push branches in Git, you shouldn't be using Git. Even with SVN, it's standard to create "dev, test, and prod" branches at a minimum. I'd strongly suggest that your team takes a step back and figures out at least that much of the basics of Git. Marc

              M Offline
              M Offline
              MarkTJohnson
              wrote on last edited by
              #15

              Trust me, if I didn't have to use it I wouldn't. PVCS was wonderful. I could lock the file I was working on and know my changes would go in. If someone had a file I needed locked then I knew I could work on some other item in my queue but we wouldn't be stepping on each other's code.

              M J 2 Replies Last reply
              0
              • N Nagy Vilmos

                Oh Jeez, how do I hate thee? Let me count the ways. 93. There are 93 different ways in which I hate GIT! I have to use the bloody thing and I'm not sure if I'm pointing to the right repo or not. Elephants! :confused: :sigh: :mad: :wtf: :beer:

                P Offline
                P Offline
                PIEBALDconsult
                wrote on last edited by
                #16

                Never tried it. No plans to try it. Using TFS at work and at least it's a step up from Subversion.

                You'll never get very far if all you do is follow instructions.

                R J 2 Replies Last reply
                0
                • M Marc Clifton

                  MarkTJohnson wrote:

                  We have kind of abandoned branching because it looks and feels like stuff vanishes.

                  :omg: Branching is the cornerstone of Git (and actually any VCS.) If you don't understand the minimum of how to create, switch, pull and push branches in Git, you shouldn't be using Git. Even with SVN, it's standard to create "dev, test, and prod" branches at a minimum. I'd strongly suggest that your team takes a step back and figures out at least that much of the basics of Git. Marc

                  P Offline
                  P Offline
                  PIEBALDconsult
                  wrote on last edited by
                  #17

                  Branching is evil and should be avoided. It's a sign of a flawed process.

                  You'll never get very far if all you do is follow instructions.

                  M J 2 Replies Last reply
                  0
                  • L Lost User

                    I never got into Git because the name is so stupid. I'm tired of stupid names for technology. I'm relieved that it sucks - now I can allow my curiosity die and think of it no more.

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

                    MehGerbil wrote:

                    I never got into Git because the name is so stupid.

                    ... says MehGerbil... ;P

                    ~RaGE();

                    I think words like 'destiny' are a way of trying to find order where none exists. - Christian Graus Entropy isn't what it used to.

                    L 1 Reply Last reply
                    0
                    • N Nagy Vilmos

                      Oh Jeez, how do I hate thee? Let me count the ways. 93. There are 93 different ways in which I hate GIT! I have to use the bloody thing and I'm not sure if I'm pointing to the right repo or not. Elephants! :confused: :sigh: :mad: :wtf: :beer:

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

                      Powerful tool. With power comes responsibility.

                      ~RaGE();

                      I think words like 'destiny' are a way of trying to find order where none exists. - Christian Graus Entropy isn't what it used to.

                      N C 2 Replies Last reply
                      0
                      • M MarkTJohnson

                        Trust me, if I didn't have to use it I wouldn't. PVCS was wonderful. I could lock the file I was working on and know my changes would go in. If someone had a file I needed locked then I knew I could work on some other item in my queue but we wouldn't be stepping on each other's code.

                        M Offline
                        M Offline
                        Marc Clifton
                        wrote on last edited by
                        #20

                        MarkTJohnson wrote:

                        I could lock the file I was working on and know my changes would go in. If someone had a file I needed locked

                        Ew. I hated locking files. I thought it was a huge improvement to work with something like SVN that didn't require file locking, and was one of the reasons I never adopted TFS because in its early days, it required file locking. Inevitably, someone would leave a file locked at the end of the day and was nowhere to be found. Marc

                        M A 2 Replies Last reply
                        0
                        • P PIEBALDconsult

                          Branching is evil and should be avoided. It's a sign of a flawed process.

                          You'll never get very far if all you do is follow instructions.

                          M Offline
                          M Offline
                          Marc Clifton
                          wrote on last edited by
                          #21

                          PIEBALDconsult wrote:

                          Branching is evil and should be avoided. It's a sign of a flawed process.

                          Why? I'm on the fence (having seen the usefulness of it in Git), but want to know your reasons. Marc

                          J 1 Reply Last reply
                          0
                          • R Rage

                            MehGerbil wrote:

                            I never got into Git because the name is so stupid.

                            ... says MehGerbil... ;P

                            ~RaGE();

                            I think words like 'destiny' are a way of trying to find order where none exists. - Christian Graus Entropy isn't what it used to.

                            L Offline
                            L Offline
                            Lost User
                            wrote on last edited by
                            #22

                            *moves Rage over to the 'not nice' column*

                            1 Reply Last reply
                            0
                            • R Rage

                              Powerful tool. With power comes responsibility.

                              ~RaGE();

                              I think words like 'destiny' are a way of trying to find order where none exists. - Christian Graus Entropy isn't what it used to.

                              N Offline
                              N Offline
                              Nagy Vilmos
                              wrote on last edited by
                              #23

                              I could say the same thing about a pneumatic drill, but it doesn't mean I want to use one!

                              R 1 Reply Last reply
                              0
                              • N Nagy Vilmos

                                Oh Jeez, how do I hate thee? Let me count the ways. 93. There are 93 different ways in which I hate GIT! I have to use the bloody thing and I'm not sure if I'm pointing to the right repo or not. Elephants! :confused: :sigh: :mad: :wtf: :beer:

                                C Offline
                                C Offline
                                Cristian Amarie
                                wrote on last edited by
                                #24

                                Allow me to bring my modest contribution. (CEF build excerpt) $ git svn find-rev r251746 _ Oh, I forgot to say: this was started 2 hours ago. Thanks, I have my Ctrl/C.

                                1 Reply Last reply
                                0
                                • R Rage

                                  Powerful tool. With power comes responsibility.

                                  ~RaGE();

                                  I think words like 'destiny' are a way of trying to find order where none exists. - Christian Graus Entropy isn't what it used to.

                                  C Offline
                                  C Offline
                                  Cristian Amarie
                                  wrote on last edited by
                                  #25

                                  Sure. Let's drive a Panzer VI instead of a car. More power, more responsibility. Heil Git.

                                  P 1 Reply Last reply
                                  0
                                  • P PIEBALDconsult

                                    Never tried it. No plans to try it. Using TFS at work and at least it's a step up from Subversion.

                                    You'll never get very far if all you do is follow instructions.

                                    R Offline
                                    R Offline
                                    Rob Philpott
                                    wrote on last edited by
                                    #26

                                    Er, no.

                                    Regards, Rob Philpott.

                                    1 Reply Last reply
                                    0
                                    • N Nagy Vilmos

                                      I could say the same thing about a pneumatic drill, but it doesn't mean I want to use one!

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

                                      No, but if you do, you'd better understand how it works... Decentralised configuration management systems are not trivial (centralised neither, but state-of-the-art now). Plus if you do not need the decentralized way, you may use it as a plain normal centralized version as well.

                                      ~RaGE();

                                      I think words like 'destiny' are a way of trying to find order where none exists. - Christian Graus Entropy isn't what it used to.

                                      J 1 Reply Last reply
                                      0
                                      • C Cristian Amarie

                                        Sure. Let's drive a Panzer VI instead of a car. More power, more responsibility. Heil Git.

                                        P Offline
                                        P Offline
                                        PIEBALDconsult
                                        wrote on last edited by
                                        #28

                                        But can it get from Berlin to Warsaw on one tank of fuel?

                                        You'll never get very far if all you do is follow instructions.

                                        1 Reply Last reply
                                        0
                                        • M Marc Clifton

                                          MarkTJohnson wrote:

                                          We have kind of abandoned branching because it looks and feels like stuff vanishes.

                                          :omg: Branching is the cornerstone of Git (and actually any VCS.) If you don't understand the minimum of how to create, switch, pull and push branches in Git, you shouldn't be using Git. Even with SVN, it's standard to create "dev, test, and prod" branches at a minimum. I'd strongly suggest that your team takes a step back and figures out at least that much of the basics of Git. Marc

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

                                          Well, they want back to the first feature of source control : backup ! I definitely need to write that article about it...

                                          ~RaGE();

                                          I think words like 'destiny' are a way of trying to find order where none exists. - Christian Graus Entropy isn't what it used to.

                                          J 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