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 driving me crazy...

Git driving me crazy...

Scheduled Pinned Locked Moved The Lounge
collaborationcryptographytutorialquestionannouncement
9 Posts 7 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.
  • A Offline
    A Offline
    Albert Holguin
    wrote on last edited by
    #1

    We've been using git at work and after a few months of using it... it still drives me a bit mad. For example: git pull origin branch Should in theory be a specialized version of: git pull ...yet you end up in a weird limbo (now thinks your local is ahead of origin/branch) because the tracking pointer somehow doesn't get updated when you specify the branch (it does with the generic "git pull"). Anyone deal with git regularly? I keep finding some of these little inconsistencies that are driving me mad. I may just be partial to SVN since I used that for years but it seems like everything is overly complex for no good reason in git. Don't get me started with hash values being used as commit identifiers. :mad:

    J K P J M 5 Replies Last reply
    0
    • A Albert Holguin

      We've been using git at work and after a few months of using it... it still drives me a bit mad. For example: git pull origin branch Should in theory be a specialized version of: git pull ...yet you end up in a weird limbo (now thinks your local is ahead of origin/branch) because the tracking pointer somehow doesn't get updated when you specify the branch (it does with the generic "git pull"). Anyone deal with git regularly? I keep finding some of these little inconsistencies that are driving me mad. I may just be partial to SVN since I used that for years but it seems like everything is overly complex for no good reason in git. Don't get me started with hash values being used as commit identifiers. :mad:

      J Offline
      J Offline
      Jeremy Falcon
      wrote on last edited by
      #2

      Albert Holguin wrote:

      Don't get me started with hash values being used as commit identifiers.

      1CFD67F65A3CBB0AC352229058BE3DB3E988E1D13511FD14A2A804A3625BEE33 ?

      Jeremy Falcon

      1 Reply Last reply
      0
      • A Albert Holguin

        We've been using git at work and after a few months of using it... it still drives me a bit mad. For example: git pull origin branch Should in theory be a specialized version of: git pull ...yet you end up in a weird limbo (now thinks your local is ahead of origin/branch) because the tracking pointer somehow doesn't get updated when you specify the branch (it does with the generic "git pull"). Anyone deal with git regularly? I keep finding some of these little inconsistencies that are driving me mad. I may just be partial to SVN since I used that for years but it seems like everything is overly complex for no good reason in git. Don't get me started with hash values being used as commit identifiers. :mad:

        K Offline
        K Offline
        Kent Sharkey
        wrote on last edited by
        #3

        I completely agree. I may (very likely) be a dinosaur, but the particular use of git at one customer has me thinking of leaving.

        TTFN - Kent

        A 1 Reply Last reply
        0
        • K Kent Sharkey

          I completely agree. I may (very likely) be a dinosaur, but the particular use of git at one customer has me thinking of leaving.

          TTFN - Kent

          A Offline
          A Offline
          Albert Holguin
          wrote on last edited by
          #4

          I believe the git developers have been quoted as saying their approach was, "if in doubt, do the opposite of what was done in SVN"... it seems like an absolutely idiotic approach to something. Instead of learning from the mistakes in the past, you're bound to invent new mistakes... that's what I see in git, completely new mistakes (innovative mistakes in design? ;P ).

          1 Reply Last reply
          0
          • A Albert Holguin

            We've been using git at work and after a few months of using it... it still drives me a bit mad. For example: git pull origin branch Should in theory be a specialized version of: git pull ...yet you end up in a weird limbo (now thinks your local is ahead of origin/branch) because the tracking pointer somehow doesn't get updated when you specify the branch (it does with the generic "git pull"). Anyone deal with git regularly? I keep finding some of these little inconsistencies that are driving me mad. I may just be partial to SVN since I used that for years but it seems like everything is overly complex for no good reason in git. Don't get me started with hash values being used as commit identifiers. :mad:

            P Offline
            P Offline
            peterchen
            wrote on last edited by
            #5

            Albert Holguin wrote:

            Don't get me started with hash values being used as commit identifiers

            First they tried to use commit comments, but then they saw yours :rolleyes: Ain't it weird? It was hacked together by a crazy egomaniac in an I'll-show-you all-nighter, so get in contact with the crazy egomanic I'll-show-you side of yours, and you'll be fine. Here's the (at this point practically required) "Don't do that, then" - advise: git fetch to update your local repo without making any other changes, then git merge or git rebase to integrate your changes. If the merge/rebase goes bonkers, you can always go back to "before limbo". Srsly: Find a workflow that works. I found it pretty awkward that virtually every operation requires at least two commands, but you get used to it, then yo uget hooked on it.

            ORDER BY what user wants

            A 1 Reply Last reply
            0
            • A Albert Holguin

              We've been using git at work and after a few months of using it... it still drives me a bit mad. For example: git pull origin branch Should in theory be a specialized version of: git pull ...yet you end up in a weird limbo (now thinks your local is ahead of origin/branch) because the tracking pointer somehow doesn't get updated when you specify the branch (it does with the generic "git pull"). Anyone deal with git regularly? I keep finding some of these little inconsistencies that are driving me mad. I may just be partial to SVN since I used that for years but it seems like everything is overly complex for no good reason in git. Don't get me started with hash values being used as commit identifiers. :mad:

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

              I totally agree. I hate Git. I'll take SVN over Git any day! X|

              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
              • A Albert Holguin

                We've been using git at work and after a few months of using it... it still drives me a bit mad. For example: git pull origin branch Should in theory be a specialized version of: git pull ...yet you end up in a weird limbo (now thinks your local is ahead of origin/branch) because the tracking pointer somehow doesn't get updated when you specify the branch (it does with the generic "git pull"). Anyone deal with git regularly? I keep finding some of these little inconsistencies that are driving me mad. I may just be partial to SVN since I used that for years but it seems like everything is overly complex for no good reason in git. Don't get me started with hash values being used as commit identifiers. :mad:

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

                What drives me mad about git is that you can't get a previous version of a single file pulled down into a separate directory to be able to look at the old code and the new code at the same time(or I haven't found the way at least). Comparing versions of files is sometimes very helpful in figuring out the bug. Much rather prefer source control systems that work on files not directory structures like SubVersion or heaven forbid old school, file locking PVCS. With file locking I know no one can mess with my work and I know who I need to talk to in case the file I want is locked. source code CONTROL system.

                C 1 Reply Last reply
                0
                • M MarkTJohnson

                  What drives me mad about git is that you can't get a previous version of a single file pulled down into a separate directory to be able to look at the old code and the new code at the same time(or I haven't found the way at least). Comparing versions of files is sometimes very helpful in figuring out the bug. Much rather prefer source control systems that work on files not directory structures like SubVersion or heaven forbid old school, file locking PVCS. With file locking I know no one can mess with my work and I know who I need to talk to in case the file I want is locked. source code CONTROL system.

                  C Offline
                  C Offline
                  Chris Maunder
                  wrote on last edited by
                  #8

                  MarkTJohnson wrote:

                  What drives me mad about git is that you can't get a previous version of a single file pulled down into a separate directory to be able to look at the old code and the new code at the same time(

                  We use ToroiseGit and it's trivial to Show Log, click the commit, right click the file that was changed and compare with the current. (However this only gives you a quick shortcut to viewing files changed in a given commit, so some hunting will be required, but there is a search feature in the TortoiseGit Log window)

                  cheers Chris Maunder

                  1 Reply Last reply
                  0
                  • P peterchen

                    Albert Holguin wrote:

                    Don't get me started with hash values being used as commit identifiers

                    First they tried to use commit comments, but then they saw yours :rolleyes: Ain't it weird? It was hacked together by a crazy egomaniac in an I'll-show-you all-nighter, so get in contact with the crazy egomanic I'll-show-you side of yours, and you'll be fine. Here's the (at this point practically required) "Don't do that, then" - advise: git fetch to update your local repo without making any other changes, then git merge or git rebase to integrate your changes. If the merge/rebase goes bonkers, you can always go back to "before limbo". Srsly: Find a workflow that works. I found it pretty awkward that virtually every operation requires at least two commands, but you get used to it, then yo uget hooked on it.

                    ORDER BY what user wants

                    A Offline
                    A Offline
                    Albert Holguin
                    wrote on last edited by
                    #9

                    peterchen wrote:

                    I found it pretty awkward that virtually every operation requires at least two commands

                    That's where the git pull is supposed to come in... but when git pull <origin> <branch> gives you a different result than git pull.... it's just another hardly documented "feature". By the way, I was doing the pull instead of the fetch/merge because it was for a repo that I hadn't changed locally, so I was just trying to sync with the origin.

                    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