Skip to main content
Filter by
Sorted by
Tagged with
1 vote
0 answers
36 views

How to fix "broken" repo with bad remote fetchref

If git has a bad fetchref configured for a remote -- "bad" meaning that the ref does not exist on the remote -- the remote becomes "broken" and no operations with it will work. ...
Mort's user avatar
  • 3,479
-1 votes
1 answer
48 views

Why does upstream have a blank "=" value in my local git repo and how do I remove it?

`guest@abc123 abc123 % git remote -v origin [email protected]:abc123/repo.git (fetch) origin git@github....
Dean Chirieleison's user avatar
0 votes
0 answers
35 views

having an error in git while pushing the project on git remote it says "fatal: protocol 'https' is not supported" [duplicate]

i first ran this command which worked perfectly fine it shows already exist cause i ran the command twice $ git remote add origin https://github.com/chaudharidhara2781/tatvasoft_internship error: ...
Dhara Chaudhari's user avatar
0 votes
0 answers
28 views

Old branches on remote cannot be deleted [duplicate]

I have been extensively looking for this, but none of the online replies worked for me. I have a git repo, on local I have only the master branch % git branch * master however, a number of old ...
James's user avatar
  • 453
0 votes
2 answers
67 views

How to change the remote branch that git status checks against?

My team moved servers for our Azure DevOps git repository. How can I change the default remote that git status will compare against? I have updated my remote origin to the correct server's url now, ...
Colin Brett Williams's user avatar
-1 votes
1 answer
28 views

How to push the same changes (diff) to multiple remotes with diverging history?

I have two upstream repositories ftp05 and ftp06 that contain diverging git history. However, some files are shared between them. Now I made changes to a file which is the same for both repositories ...
glades's user avatar
  • 4,476
0 votes
0 answers
44 views

How to remove git:[[email protected] .git] in pycharm terminal

In my PyCharm command line, I have this prompt: (.venv) ~/PycharmProjects/myBinanceTrade git:[[email protected]/webService.git]. How can I remove the git:[[email protected]/webService....
Fouad's user avatar
  • 1
0 votes
0 answers
46 views

How to handle "fatal: bad object refs/heads/main 2"?

I executed this command on my perfectly working repository and today I see that my main branch has lost all of its logs and commits I had done. ❯ git log fatal: your current branch 'main' does not ...
Samarth Pyati's user avatar
-1 votes
1 answer
56 views

Working with GitHub repository with no local git project [duplicate]

I want to merge a branch into main in a remote repository hosted on GitHub. I don't want to clone the repository locally first. How can I do this please?
Robin Andrews's user avatar
0 votes
0 answers
71 views

How to push a named local branch to a particular branch (of different name) in a remote repository

Is there a straightforward way to push a named local branch to a branch of a different name in a remote repository? Currently, I have a complicated script which my students are supposed to run to do ...
Jim Newton's user avatar
-2 votes
1 answer
61 views

How to create github repository using access token via CLI

EveryOne. I wanna create Github repository using access token via CLI I wanna work on Command Prompt which has below functions. Clone repository from github Create repository on My github account Add ...
Stella Zhang's user avatar
0 votes
2 answers
139 views

git merge-base HEAD <remote branch> doesn't return anything?

I'm cloning a certain branch of a repo. I then fetch a second branch. I ultimately want to run merge-base but every time I do it returns nothing: git-init \ -url="${PARAM_URL}" \ -...
jeremywat's user avatar
  • 759
0 votes
2 answers
59 views

Can I use two remotes with one local repo and use one of the remotes just to sync desktop and laptop?

I have a local git repo. I push and pull to a remote repo that I share with colleagues and don't want to push unfinished and untested changes. I have a desktop and a laptop computer on which I want to ...
shortwhile's user avatar
1 vote
1 answer
100 views

git GitHub remote branch push cannot be resolved to branch

Trying to push to a GitHub Repository, to a branch named Kedabra, did init checkout clone fetch add . and when I push y get the error "Kedabra cannot be resolved to branch". git remote add ...
Kedabra's user avatar
  • 56
0 votes
1 answer
175 views

How to update submodule's remote

I'm currently working on a project where I've incorporated an external repository as a submodule using .gitmodules. Recently, I needed to introduce some custom functionality, so I made changes ...
Raja Saad's user avatar
  • 385
0 votes
0 answers
40 views

git clone --no-single-branch --shallow-since="4 months" gets only one remote branch

I am trying to clone a repo as below git clone --no-single-branch --shallow-since="4 months" somegitrepo the cloning happens fine, but when check git branch it only shows one branch I ...
Santhosh's user avatar
  • 11.5k
-2 votes
1 answer
47 views

Can I create another branch from one that's open from my main? [closed]

So I have a branch A open from my main/master branch. There's a different ticket from A that I need to work on, which overall like all tickets at the end gets merged into the master. Right now, I have ...
Linuxnoob's user avatar
-1 votes
1 answer
46 views

can someone help me with this i am trying to push on my main branch [duplicate]

! [rejected] main -> main (non-fast-forward) error: failed to push some refs to 'https://github.com/soham203/Authenticator-DID-.git' hint: Updates were rejected because the tip of your ...
Soham Patil's user avatar
0 votes
0 answers
42 views

How to reverse proxy git protocols with git-remote-helpers?

I am playing around with git remote helpers trying to write a "reverse proxy" sort of custom helper to work with a personal server and custom protocol. I am doing this because git itself ...
Guga Figueiredo's user avatar
0 votes
1 answer
76 views

Is it safe to rebase remote branch if nobody based work on it? [duplicate]

I want push my personal local branch for code review with my peer. My peer doesn't will merge this branch. After code review, I want rebase my personal branch in master branch, and push master branch. ...
Alisson's user avatar
0 votes
0 answers
38 views

git remote is not there after repo is cloned again

I have tried to make a fork of a github repo in an internal gitlab server by making an empty repo on GitLab, cloning it, and doing git remote add upstream https://github.com/user/repo git pull ...
confusedandsad's user avatar
0 votes
0 answers
49 views

Error: Atropos is not defined error after hosted

I'm working with Atropos js library.It works perfect in local.But when I try to open in remote after hosting in github.Its not working.And I have installed Atropos using npm. here is my code: <html&...
Dinesh kumar's user avatar
0 votes
0 answers
57 views

Why does Git fetch remember and use deleted local tracking branches

Can you tell me why git seems to remember and use its “fetch memory” for a deleted local repository? I delete a local branch that was tracking a remote, and when that remote is completely rebuilt with ...
user6096790's user avatar
-1 votes
2 answers
198 views

Set gitlab repository to have more than 1 remote

I am using a repository in Gitlab. When I clone the repository, it has its usual remote origin which points to Gitlab. However, I also need to push the commits to a second repo and for that reason I ...
John's user avatar
  • 501
0 votes
0 answers
58 views

How can I swap the IP with a DNS link for git remote?

I'm struggling to understand how to properly run a git server. I've been following this https://git-scm.com/book/en/v2/Git-on-the-Server-Setting-Up-the-Server What I'm trying to do is run the server ...
Jake A's user avatar
  • 125
0 votes
0 answers
24 views

on master branch -- told to "specify a branch"

We use a custom script to build and publish documentation from Flare. I have been using the same steps for 2 months and suddenly something has changed and the script no longer executes properly. ...
Andrea's user avatar
  • 1
0 votes
0 answers
6 views

Remote Development Extensions

I have downloaded the remote repositories extensions for VS code. I tend to work on a lot of computers and want to have a setup of VS code either portable if I can or if not at least remote so I can ...
StuartJAtkinson's user avatar
0 votes
1 answer
1k views

! [remote rejected] main -> main (pre-receive hook declined)

We recently migrated the gitlab server, the structure is working without problems via the web browser. However, when I try to push git push origin main I return the following error: lucas_a@NB04 ...
Lucas Alves's user avatar
1 vote
1 answer
216 views

Adding a submodule in a git remote repository

In git, I created a top-level firmware project like this mkdir firmware cd firmware git init --bare cd .. mkdir firmware_pci cd firmware_pci git init --bare Now I want to add firmware_pci as a ...
Yogi Wannabe's user avatar
0 votes
2 answers
324 views

Git pull in IntelliJ without modifying change list

I have multiple git changelists in IntelliJ, and now I need to update my local code by doing a git pull from remote. However, I receive an error while doing the git pull which says "Commit/Stash ...
MohanaSundaram J's user avatar
-1 votes
2 answers
142 views

Using git log on a bare git repository with remote name in revision

I've been experimenting with git worktree and found some weird issue. Maybe it has to do cloning the repository as --bare. $ cd ~ $ git clone --bare https://github.com/actions/checkout.git The ...
Konrad Kleine's user avatar
1 vote
2 answers
50 views

How to recover from a state where a remote cannot be fully deleted?

I have run git remote remove origin, but the remote origin doesn't get fully removed. Now when I run git remote -v, it lists origin, but does not give any URL next to it. All other git remote commands ...
Owen's user avatar
  • 7,726
-1 votes
2 answers
98 views

I'm working on a project from two different computers. How do I simply replace the local repository with the one on GitHub?

I'm working on a project on two different computers and I want to be able to simply push from one computer and pull it on the other, so that it essentially replaces the local one with the one on ...
JVDS1069's user avatar
0 votes
0 answers
34 views

Same file linked with Github gist and repo, two remotes

I have a private repository mainly with markdown files. I would like to make one of these files public through a gist, and be able to push to the two remotes. Is that possible? This is what I did (MWE)...
Vittorio's user avatar
-1 votes
1 answer
26 views

Git not using custom origin port, falls back to 22 [duplicate]

I have remote which has a URL [email protected]:8088/dusan.work/portfolio.git, whenever I try to git push it returns an error stating: ssh: connect to host gitea.kong port 22: Connection refused fatal: ...
Dusan Gligoric's user avatar
0 votes
0 answers
47 views

In git, how can one track files and commit them to only a specific remote, while keeping them available to other branches committing to other remotes?

The problem in detail I am making a game, and intend to open source the code but keep the assets private. My goal is to track the assets and game together in a private repository so that I can take ...
student1234's user avatar
0 votes
1 answer
540 views

Git cannot checkout remote branch despite `git ls-remote origin` showing it exists

I'm struggling to checkout a remote branch that I know exists, because it shows up with git ls-remote: $ git ls-remote 242d56fbd8d8af67df3157bd047252f5580e3df8 HEAD ...
Cornelius Roemer's user avatar
1 vote
0 answers
204 views

Add multi-participants with git-remote-gcrypt

I'm learning how to use git-remote-gcrypt with multi-participants. Let's say I have two computers acting as two user/participants. I do things like following: Step1: Generate GPG key pairs for them ...
Leon's user avatar
  • 2,027
0 votes
1 answer
107 views

Git Branch Deletion (laravel-breeze)

if i create branch and make changes in it and then suddenly realized that I don't these changes that I made. At that time if I delete git branch, will it make my project like the old one. I have not ...
Hassaan adeel's user avatar
0 votes
1 answer
690 views

Remove remote commits on the branch in GitHub

ALL, I made a local branch in my fork a long time ago and pushed some changes to it. I then submitted a PR which was passed the CI build. Now after some time I came back to the same machine I produced ...
Igor's user avatar
  • 5,982
0 votes
2 answers
22 views

GitHub not letting to push after resetting keys triple times, based on their tutorial, based on bitbucket tutorial, still denied

banana@banana-pc:~/Projects/bananaproject$ git remote add origin https://github.com/bananauser/bananaprojectmanager.git error: remote origin already exists. banana@banana-pc:~/Projects/bananaproject$ ...
Aubergine's user avatar
  • 5,992
0 votes
1 answer
32 views

Git checkout erased newest commit

Recently I made a ton of changes to my code and committed using the following commands. git add . git commit -m "example message" git push origin development When it didn't work, it said it ...
rabbibillclinton's user avatar
0 votes
1 answer
223 views

Visual Studio Code - remote code execution

I am using VSC on a Mac computer, working in a development environment that resides on a remote machine running Ubuntu 22.04. I can run my code locally on the Ubuntu computer without a problem. I have ...
AFK's user avatar
  • 402
0 votes
1 answer
2k views

Why am I getting "permission denied (publickey)" when trying to push to my repository on Github?

I'm on Windows, using Git for Windows 2.40.0.windows.1 I've wanted to use SSH rather than HTTPS to connect to Github, so I've set up an SSH keypair, and added the public key to my Github profile. I ...
Chippy's user avatar
  • 77
0 votes
1 answer
531 views

Pull changes from a specific directory of the remote repository

I have a git repo (repoA) and I am trying to pull the files from a particular directory in the remote repo (repoB). How can I achieve this without pulling files from all the directories in repoB? To ...
Deepansh Arora's user avatar
0 votes
1 answer
508 views

Git push: writing objects takes long time and fatal error: the remote end hung up unexpectedly [duplicate]

Last Saturday (21 April) I made some minor improvements in my local repository. After pushing the minor changes, the "writing objects" got stuck, resulting in a "fatal: the remote hung ...
Foeke Boersma's user avatar
0 votes
1 answer
191 views

Git fetch not fetching from upstream

I have cloned a fork repo using GitHub CLI gh: gh repo clone felipeplets/Auto-GPT In order to check out an upstream branch locally I then ran: git fetch --all git switch -c stable upstream/stable I ...
Felipe Plets's user avatar
  • 7,460
1 vote
1 answer
199 views

How to connect to local git repo on another disk?

I have a local source git repo C:\Users\qweta\Documents\scrmd.git\ and a local blank repo D:\syb\loc. I want to add srcmd.git as a remote repo in loc. The adding seems to work: D:\syb\loc master ❯ ...
PineapplePie's user avatar
0 votes
1 answer
292 views

Git: Do you have to do a commit after a pull from remote?

If I'm on a local branch and pull from remote, and then try to switch to a different branch, it tells me to commit or stash changes first. I figured that when I do the pull, I'd be getting all the new ...
gkeenley's user avatar
  • 7,088
0 votes
1 answer
30 views

Git: push remote A branch Foo to remote B branch bar

Is it possible to push A/foo to B/bar where A and B are remotes( different, obviously ), and foo and bar are branch names?
errorous's user avatar
  • 1,061

1
2 3 4 5
20