Is it possible to configure git to, by default, when using git fetch, fetch only the current branch and master from the remote, without explicitly mentioning the current branch name?
I know that I can achieve this exact fetch with this command:
git…
From recent work in devops, it seems as though there are "two ways" to check out a branch in git: using the plain branch name, e.g. dev, or using the branch name prefixed with refs/heads/, e.g. refs/heads/dev.
What is the difference between the…
I'm trying to use SimpleTransformers module for this competition.
After successfully installing the package SimpleTransformers in kernel , i'm trying to import NERModel and NERArgs packages from simpletransformers.ner. But i get error message as…
I've been generating a few git repositories from CVS repositories using the crap tool (it's not crap!...)
Unfortunately, with one of them, and after the export, I keep getting complaints about HEAD being an ambiguous reference. I've read:
warning:…
Which push Refspec (Git) is correct? Or both are correct? What is the difference?
refs/heads/*:refs/heads/origin/*
refs/heads/*:refs/heads/*
I prefer (1) because it references remote name (origin), and I don't understand what (2) means (but I see…
Running git ls-remote origin on a repo I have access to, I see branches of the following form, using git namespaces.
refs/namespaces/share/refs/namespaces//refs/heads/
I'd like to map these to…
I want to fetch objects from a remote repo, but not update any local refs. (Yes, I know this is an rather unusual case.)
I see that I can pass a refspec to git fetch, but when I pass an empty one (git fetch my-remote ''), it seems to default to…
I got an issue when fetch new commits merged to.
I know how to resolve the problem with prune locally.
But the problem is at server and I can not ssh to (just run CI/CD set up before).
How can I resolve the problem with my local repository and push…
This https://git-scm.com/book/en/v2/Git-Internals-The-Refspec
says
The + tells Git to update the reference even if it isn’t a fast-forward.
What does this mean?
I am using
git fetch origin feature/blabla
to be really specific what I want to fetch.
However this does not fetch tags which are currently on feature/blabla.
A git fetch only (supposed the branch is checkedout) fetches the
tags too.
Is it…
I am using git for my project. During that I get some strange branches. If I use gitk to analyze, I can see that the name of these branches is something like original/refs/remotes/origin/ There is also a local version of this branch.…
git pull request is failing each time because a change in refs/notes/review in the remote gerrit instance cannot be fast forwarded. I did (hard) reset the local branch to be in sync with the remote branch but that doesn't help with this (git reset…
I am playing around with git.
Current status:
1) my local repo has one branch master_local.
2) the remote repo has one branch master_remote. (the remote's name is hehe_server)
3) my local .git/config looks like
[core]
repositoryformatversion =…
If I want to push the contents from a remote:master to the same remote but a different branch, how can I do this?
With git push remote.git master:mybranch I can push the local repo into the second branch
But what I'd like is push not from the local…
I cloned a repository from BitBucket. After I made some simple changes in the code I did a commit. However, I am not able to push. The following error appears:
git -c diff.mnemonicprefix=false -c core.quotepath=false -c
credential.helper=sourcetree…