I clone my repository with:
git clone ssh://xxxxx/xx.git
But after I change some files and add and commit them, I want to push them to the server:
git add xxx.php
git commit -m "TEST"
git push origin master
But the error I get back is:
error: src…
when I checkout remote git tag use command like this:
git checkout -b local_branch_name origin/remote_tag_name
I got error like this:
error: pathspec origin/remote_tag_name did not match any file(s) known to git.
I can find remote_tag_name when I…
I've been following this guide on configuring GitLab continuous integration with Jenkins.
As part of the process, it is necessary to set the refspec as follows: +refs/heads/*:refs/remotes/origin/*…
whenever I'm trying to upload my files using git push -u origin main
I'm getting error which is as follows
error: src refspec main does not match any
error: failed to push some refs to 'github.com:xxxxxx/xxx-project.git'
but if I do git push -u…
Let's say I want to write a small helper that allows to append some metadata to a repository in a way that can propagate to clones via refs. Simple example (a git-notes clone prototype that doesn't even attach the notes to any other git…
I am facing below issue while taking fresh pull. (git pull)
error: cannot update the ref 'refs/remotes/origin/xyz': unable to
create directory for '.git/logs/refs/remotes/origin/xyz': No such file
or directory
I have checked particular location…
I have a Git repository which is being managed with Gerrit, where you don't push to , but instead push to refs/for/, and then magic happens. Thus, I'd like different behavior for git pull and git push. In particular, I want git pull…
In various places, looking for instructions on how to create a local branch from a GitHub Pull Request, I have seen two versions:
git fetch upstream refs/pull/PR_ID/head:NEW_LOCAL_BRANCH
and
git fetch upstream pull/PR_ID/head:NEW_LOCAL_BRANCH
My…
I have a github repo with around 1.7GB of lfs storage used for which I am paying the upgraded storage plan.
Me and my group of 6 other people used this repo during a university games project, they all made forks of it and made pull requests into the…
I am trying to determine if it is possible to specify both a matching branch and a tag when declaring a module in terraforming.
In the Terraform Docs it notes that branch or tag can be used in the source for a module.
module "vpc" {
source =…
After looking at Git tags and seeing how they are propagated and how many workarounds there are to pruning them, I concluded that the best fix would be to change the structure of refs/remotes/origin/. So, why are refs under refs/remotes/origin/…
Consider the following repository. It has a lot of private branches for team members, all under the refs/heads/team/ namespace, that I do not want to fetch, but I still do want to fetch all the rest, including any possibly newly created branches…
I am currently implementing Gerrit as central code review system. In the process of trying to understand the ins and outs of Gerrit, I got stuck at the sentence below. Taken from the Gerrit documentation:
As Gerrit implements the entire SSH and Git…
I have a branch which pulls from one remote and pushes to another and U used git branch --set-upstream-to=xxxx xxxx to set the pull repo and git config remote.origin.pushurl user@user.com:repo.git to set the push repo.
Although the pull is from the…