Questions tagged [git-fetch]

git-fetch - Download objects and refs from another repository

The git command fetch retrieves changes done in a remote repository.

It will not merge the changes automatically into your local branches, use git pull for this or merge from the origin-branch after doing fetch.

See the man page for full details.

397 questions
0
votes
0 answers

git fetch/pull keeps updating branch

Every time I do a git fetch/pull I am getting and update that a new branch has been downloaded. I am certain that the branch isn't being updated on the server side in the interim. What could be causing this? The server is a gitlab instance See…
Gregory Kuhn
  • 1,627
  • 2
  • 22
  • 34
0
votes
1 answer

pushing limited commit history to remote git

I have a git repository on a lab machine at my school and have been running into an issue I've been trying to solve. Due to arrangement of the CUDA SDK we're using, I have two remotes in the same directory, but I do not want all the commits from…
rf22
  • 13
  • 6
0
votes
1 answer

git: reviewing changes after 'git fetch'

Following a git fetch, I'd like to review code changes that are introduced from upstream. I can use git log -p ..@{u}, however the output will not include diffs of merge commits/merges of pull requests. Is there a way to include those in the output,…
pointyhat
  • 568
  • 5
  • 16
0
votes
1 answer

Git: Fastest Way to Update a Remote Branch to Specific Revision (Haven't Cloned the Repo Yet)

The repo is very large, and I'm trying to script a process running on cloud VMs that start from scratch (i.e. no local cloned repo). Additionally, let's assume that copying a cached cloned repo from somewhere isn't an option. Is there a way to tell…
internet user
  • 103
  • 1
  • 5
0
votes
2 answers

What's difference netween git fetch B + git merge B VS git merge origin/B

What's the difference between git fetch B + merge B and merge origin/B? $ git fetch origin develop From [...] * branch develop -> FETCH_HEAD $ git merge develop Already up-to-date. $ git merge origin/develop error: Your local changes…
shamil
  • 1
  • 1
0
votes
2 answers

Deleted branches after 'git fetch -p'

I try to delete several branches from my project: leo:Project leo$ git push origin --delete effects To https://github.com/gituser/Project.git - [deleted] effects leo:Project leo$ git push origin --delete viewport To…
Leo
  • 3,003
  • 5
  • 38
  • 61
0
votes
0 answers

Reasons for lack of output of git fetch (zsh console)?

I've encountered a problem with git recently. For one of my repositories it does not show any output for git fetch any more. All the repositories are stored on the same gitolite server. See what happens now in my console: # jul is the user # pushing…
BairDev
  • 2,865
  • 4
  • 27
  • 50
0
votes
0 answers

How do I fix a rejected git fetch to a bare repository?

I'm the author of WorldPainter (a map generator for Minecraft). I have a set of git repositories set up to be able to work on WorldPainter at home and at work. There is a full repository on my workstation at home ([Home]) and one at work ([Work]).…
Pepijn Schmitz
  • 2,143
  • 1
  • 17
  • 18
0
votes
0 answers

libgit2sharp exception "cross host redirect not allowed"

Windows 7 ASP.NET MVC 4 LibGit2Sharp 0.21.0.176 Visual Studio Premium 2012 Version 11.0.61030.00 Update 4 Microsoft .NET Framework Version 4.5.50709 I have various unit/integration tests that call the following code : var remote =…
BaltoStar
  • 8,165
  • 17
  • 59
  • 91
0
votes
1 answer

git push and fetch annotated tag does not create the tag

I just created an annotated tag on machine A, then pushed the tag to the server S: @A$ git tag -a v1 -m"Release version 1" @A$ git push origin_on_S v1 Then on machine B, I tried to fetch the tag: @B$ git fetch origin v1 I got the commit, but not…
Gauthier
  • 40,309
  • 11
  • 63
  • 97
0
votes
0 answers

git fetch origin just stops doesn't do anything

I have git branches on a remote server They are like: origin/ABCD origin/HEAD -> origin/master origin/XYZP origin/PQRS I see them when I run git branch -r. Now, I am at a local machine, which is connected to the remote server, and I am on a local…
Sumit
  • 11
  • 4
0
votes
1 answer

can't deploy (checkout) code and branch still missing after shallow git fetch

I've made a quick setup of the repository: git init git remote add origin git@bitbucket.org:bbaccount/svgopt.git git fetch origin display-channel --depth 1 remote: Counting objects: 85, done. remote: Compressing objects: 100% (82/82), done. remote:…
msciwoj
  • 772
  • 7
  • 23
0
votes
1 answer

How to a fetch detached Git HEAD from a local repository?

During a pre-commit hook (actually a ref-update in Gerrit) the repository is in a detached HEAD mode (witch is fine). Doing a git clone path/to/my/repo does clone/fetch this commit, but I'd like to just do a git fetch and avoid cloning my repository…
Wernight
  • 36,122
  • 25
  • 118
  • 131
0
votes
2 answers

Git refuses to track or otherwise recognize the remote branch

git fetch origin doesn't get the new branch, and thus --track always fails, no matter what I try. https://gist.github.com/dubslow/dab61346cc06d6b9cf7b That's ^ everything I've tried. You'll note that I tried all the commands in the related question…
Dubslow
  • 553
  • 2
  • 6
  • 15
0
votes
1 answer

Is there any equivalent svn command for git fetch

Anyway I have got some understanding about the differences between git fetch, git pull and git merge. Now I want to know whether there exists an equivalent svn command for git fetch that copies the latest code from the remote repo and that doesn't…
Sujith H S
  • 477
  • 8
  • 18