git-fetch Questions

21

Solved

On my branch I had some files in .gitignore On a different branch those files are not. I want to merge the different branch into mine, and I don't care if those files are no longer ignored or not...
Matless asked 1/7, 2013 at 12:16

4

Seemingly at random, our local repos can no longer fetch from our Bonobo server. It happens with our biggest remote repo (about 4GB) to different people and at different times, when we try to fetch...
Exist asked 12/12, 2014 at 10:57

53

Solved

How do I force an overwrite of local files on a git pull? My local repository contains a file of the same filename as on the server. error: Untracked working tree file 'example.txt' would be overw...
Pettitoes asked 14/7, 2009 at 14:58

53

Solved

How do I force an overwrite of local files on a git pull? My local repository contains a file of the same filename as on the server. error: Untracked working tree file 'example.txt' would be overw...
Artificer asked 14/7, 2009 at 14:58

53

Solved

How do I force an overwrite of local files on a git pull? My local repository contains a file of the same filename as on the server. error: Untracked working tree file 'example.txt' would be overw...
Horologist asked 14/7, 2009 at 14:58

24

I randomly hit this today while trying to run Git garbage collect: $ git gc fatal: bad object refs/remotes/origin/HEAD error: failed to run repack How do I deal with this?
Fodder asked 10/5, 2016 at 17:25

13

Solved

I have cloned a repository, after which somebody else has created a new branch, which I'd like to start working on. I read the manual, and it seems dead straight easy. Strangely it's not working, a...
Envelopment asked 24/7, 2012 at 3:48

4

Solved

What is the difference between the following git commands? git fetch origin and git fetch --all Running them from the command line looks like they do the same thing.
Oratorical asked 14/4, 2016 at 17:52

8

Solved

When I do git fetch origin and origin has a deleted branch, it doesn't seem to update it in my repository. When I do git branch -r it still shows origin/DELETED_BRANCH. How can I fix this?
Quintessa asked 22/4, 2011 at 1:56

13

Solved

When I try to pull in my project directory in the terminal, I see the following error: harsukh@harsukh-desktop:~/Sites/branch1$ git pull origin master U app/config/app.php U app/config/database.ph...
Diamonddiamondback asked 15/10, 2014 at 7:28

5

Solved

I've read from various sources that it's usually a better idea to fetch then merge rather than simply pull as it allows for finer control. That said, I've yet to find actually how to do it. Case in...
Bharal asked 25/1, 2013 at 0:19

6

Solved

I just added additional remote A to my repo B and then run git fetch A. How can I undo the fetch? If I just remove remote A: git remote remove A1 would it undo fetch? UPDATE: $ git remote add A p...
Cathepsin asked 24/2, 2016 at 2:0

7

Solved

I am working on a Git branch that has some broken tests, and I would like to pull (merge changes, not just overwrite) these tests from another branch where they are already fixed. I know I can do ...
Krummhorn asked 26/4, 2013 at 7:20

10

All of my Jenkins builds are failing at the git fetch line. It's failing at git fetch --tags --progress [email protected]:ethenwilson/whentoact.git Started by user anonymous Building in wor...
Acker asked 17/7, 2014 at 21:26

6

I am unable to git clone a remote repository using plain git clone path I get the error "The remote end hung up unexpectedly". The complete msg I get is : Cloning into 'xyzabc'... remote: Coun...
Undersigned asked 17/1, 2015 at 16:55

2

Solved

I want to pull changes from an upstream repo's branch. I have set the upstream repo using: git remote add upstream http://URL-of-master-repo.git and then I tried to pull the changes using gi...
Levirate asked 25/10, 2018 at 3:52

4

Solved

I didn't want to lose some information after a git pull, so I did a git fetch before. Where can I read the new modifications after a git fetch? I went to the FETCH_HEAD file, but there was nothing ...
Bawbee asked 21/5, 2012 at 0:56

6

Solved

I'm trying $ git pull or $ git fetch command on myRepo gives me error but myTestRepo works fine. Commands give me that error. Fetching origin fatal: unable to access 'http://mysite/myPath/myRepo....
Insufflate asked 14/10, 2019 at 7:43

5

Solved

According to the documentation, git pull performs a git fetch then a git merge, however in that case performing git pull origin master should perform a git fetch origin master right? However, it do...
Anywise asked 31/12, 2011 at 15:58

13

Solved

I would like to know if my local repo is up to date (and if not, ideally, I would like to see the changes). How could I check this without doing git fetch or git pull ?
Succory asked 29/10, 2011 at 11:53

10

Solved

I am working on a site with a server running Git. I am using Git for deployment (not GitHub). This was set up prior to my involvement using a hook method, and I referred to this question and entere...
Matronage asked 6/2, 2015 at 21:52

2

To save disk space, I generally shallow clone: The latest remote git tag The default branch with: git clone --depth 20 --shallow-submodules --recurse-submodules How do I increase increase the ...
Remonstrate asked 11/6, 2019 at 8:25

3

Solved

This is probably pretty basic, but I wasn't able to figure it out yet: I have a PHP project running on two servers, let's refer to those as Live and Staging Both servers are running the same proje...
Finished asked 4/6, 2020 at 11:55

3

Working with remote repository at some moment I started recieving this when I run git fetch origin Auto packing the repository in background for optimum performance. See "git help gc" ...
Aliped asked 21/5, 2021 at 3:16

11

Solved

Is there any way to retrieve only one specific commit from a remote Git repo without cloning it on my PC? The structure of remote repo is absolutely same as that of mine and hence there won't be an...
Porty asked 14/2, 2013 at 10:18

© 2022 - 2025 — McMap. All rights reserved.