Skip to main content
The 2024 Developer Survey results are live! See the results

Questions tagged [git-remote]

git-remote is a command used to manage the set of tracked remote repositories.

git-remote
-1 votes
1 answer
37 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
33 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
58 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,475
0 votes
0 answers
35 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
31 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
44 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
55 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
53 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
90 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
  • 732
0 votes
2 answers
45 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
78 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
116 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
  • 375
0 votes
0 answers
38 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.4k

15 30 50 per page
1
2 3 4 5
64