{"thread":{"id":"58323","subject":"There is no tracking information for the current branch","startedAt":"2022-08-18T19:17:45Z","lastAt":"2022-08-26T18:02:41Z","messageCount":3,"participants":["Michael Hennebry","Reto"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"461462","messageId":"alpine.DEB.2.21.2208181407290.2645@mail.cs.ndsu.nodak.edu","threadId":"58323","inReplyTo":null,"subject":"There is no tracking information for the current branch","fromName":"Michael Hennebry","fromEmail":"hennebry@web.cs.ndsu.nodak.edu","sentAt":"2022-08-18T19:10:15Z","receivedAt":"2022-08-18T19:17:45Z","isPatch":false,"sender":{"key":"hennebry@web.cs.ndsu.nodak.edu","avatar":null},"body":"I have a git repository I use for all related work.\nI cloned it for two reasons:\nA backup.\nAllow testing whether everything needed is under version control.\n\nThis seems like something that should be easy.\nIf I cannot do it, I might have to give up on version control,\nas git seems to have conquered the world.\n\nTo be clear, by \"cloned\", I mean that I made it with git clone.\nI want to maintain the clone as a more or less exact copy of its mother.\nThe clone, of course, would remember its mother.\n\nFrom git help fetch and git help pull , I gathered I could do this.\nNyet.\nNo combination of git fetch and git pull seems to do the trick.\nEventually I got\n[hennebry@fedora sqrt-g]$ git pull\n\\There is no tracking information for the current branch.\nPlease specify which branch you want to merge with.\nSee git-pull(1) for details.\n\n     git pull <remote> <branch>\n\nIf you wish to set tracking information for this branch you can do so with:\n\n     git branch --set-upstream-to=origin/<branch> master\n\n[hennebry@fedora sqrt-g]$ gvim /tmp/git.txt\n[hennebry@fedora sqrt-g]$ pwd\n/home/hennebry/sqrt-g\n[hennebry@fedora sqrt-g]$ git branch\n   corrections\n* master\n   split1\n[hennebry@fedora sqrt-g]$\n\nI am not happy.\nWhat happened?\nHow do I do what I want to do?\nWill I have to process each branch one at a time?\nThat could be difficult, since at the moment,\nI cannot even process one branch.\ngit fetch --all ?\n\nThe mother is on an SD card that through USB has\nbeen continuously connected to my PC at all times.\nThe clone is on my hard drive.\n\n[hennebry@fedora sqrt-g]$ git remote -v\norigin\t/run/media/hennebry/data2/mathprog/sqrt-g (fetch)\norigin\t/run/media/hennebry/data2/mathprog/sqrt-g (push)\n[hennebry@fedora sqrt-g]$ [hennebry@fedora sqrt-g]$ git diff\n[hennebry@fedora sqrt-g]$ git merge\nfatal: No remote for the current branch.\n[hennebry@fedora sqrt-g]$\n\n\n-- \nMichael   hennebry@web.cs.ndsu.NoDak.edu\n\"Sorry but your password must contain an uppercase letter, a number,\na haiku, a gang sign, a heiroglyph, and the blood of a virgin.\"\n                                                              --  someeecards\n"},{"id":"461481","messageId":"alpine.DEB.2.21.2208181721060.3619@mail.cs.ndsu.nodak.edu","threadId":"58323","inReplyTo":"alpine.DEB.2.21.2208181407290.2645@mail.cs.ndsu.nodak.edu","subject":"Re: There is no tracking information for the current branch","fromName":"Michael Hennebry","fromEmail":"hennebry@web.cs.ndsu.nodak.edu","sentAt":"2022-08-18T22:22:59Z","receivedAt":"2022-08-18T22:23:02Z","isPatch":false,"sender":{"key":"hennebry@web.cs.ndsu.nodak.edu","avatar":null},"body":"On perusing the archives, which I shold have done sooner,\nI note that I am clearly in the wrong forum.\nA suggestion as to the right one would be welcome.\n\n-- \nMichael   hennebry@web.cs.ndsu.NoDak.edu\n\"Sorry but your password must contain an uppercase letter, a number,\na haiku, a gang sign, a heiroglyph, and the blood of a virgin.\"\n                                                              --  someeecards\n"},{"id":"462010","messageId":"20220826180230.brbo32ct2255rfe3@feather","threadId":"58323","inReplyTo":"alpine.DEB.2.21.2208181407290.2645@mail.cs.ndsu.nodak.edu","subject":"Re: There is no tracking information for the current branch","fromName":"Reto","fromEmail":"reto@labrat.space","sentAt":"2022-08-26T18:02:30Z","receivedAt":"2022-08-26T18:02:41Z","isPatch":false,"sender":{"key":"reto@labrat.space","avatar":null},"body":"You can just run `git fetch`.\nThe origin/* branches will then contain what you want. Replace origin\nwith whatever name you gave your remote.\n\nAssuming you really want to pull all branches directly to local\nbranches, add a refspec that does that.\n\ngit-fetch(1) has the details.\n\nHope that helps,\nReto\n"}]}