![]() I'm hoping for answers along the lines of either:Ī) Yes, you're doing it wrong and here's how you should do it (via the GUI) orÄ«) This is a known issue, you'll have to do it from the command-line interface (Git Bash) until the bug is fixed. However, it seems to be I should be able to do this via the GUI. I know I can use the Git Bash console to fetch the remote branch and create a new local one from it. So I'm guessing I'm doing something wrong. However, looking at the Git Extensions project change log the problem looks like it was solved way back in version 1.55. There appears to have once been a bug to do with creating local branches from remote ones in earlier versions of Git Extensions. In that case the progress dialog shows: c:\Program Files (x86)\Git\bin\git.exe fetch -progress "origin" I get the same result if, in the Pull dialog, I don't select any Remote branch (ie leave it blank). When I pull down the dropdown list of branches there are still only two: master and mRoutePCLib. The new branch, brentfo, has not been created in my local repository. When I look at the commit log afterwards, however, nothing seems to have happened (the commit log appears in the background in the image of the Pull dialog, above). I fetch a remote branch via git fetch origin name-of-branch:refs/remotes/name-of-branch. The FETCH_HEAD file shows the following: eea033921fea43acf34a5baa380d1666181b56aa branch 'master' of //server/gitrepo/mRouteDotNETÄ¥e0640e42d04a744aae2e95663a13c0747cacaf1 not-for-merge branch 'brentfo' of //server/gitrepo/mRouteDotNETÄ©34e6034c526b703ac69b26497e0131f9bb71c2c not-for-merge branch 'mRoutePCLib' of //server/gitrepo/mRouteDotNET It appears the process completes normally. The progress dialog does not show any error. When I click on the Pull button I get a progress dialog: c:\Program Files (x86)\Git\bin\git.exe fetch -progress "origin" +refs/heads/brentfo I'm pulling from the origin with merge option "Do not merge, only fetch remote changes", selecting the new Remote branch "brentfo". I open the Git Extensions Pull dialog, as seen in the image. I want to now fetch that new branch down to my local repository. There is some discussion of this post on the git mailing list, but much of it is tangential to the points Iâm trying to make here. The master is currently checked out and the other user has added a new branch, "brentfo", which he has pushed up the remote repository. About git: fetch and merge, donât pull This is too long and rambling, but to steal a joke from Mark TwainBlaise PascalI havenât had time to make it shorter yet. I want to fetch that new branch down to my local repository. to add a remote for the specific branches. Note that when you did a clone, clone actually does a fetch and the depth is the same depth specified in your fetch. git remote add -t development origindevelopment . You could try forcing it by specifying the fetch depth: git fetch -depth999999.I'm running Git Extensions 2.32 on Git For Windows (previously known as msysgit) 1.7.10.msysgit.1.Īnother user has created a new branch and pushed it to the remote repository. You need to fetch the development branch first: git fetch origin development:development.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |