Questions tagged [git-remote]
git-remote is a command used to manage the set of tracked remote repositories.
git-remote
957
questions
-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....
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: ...
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 ...
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, ...
-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 ...
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....
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 ...
-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?
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 ...
-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 ...
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}" \
-...
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 ...
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 ...
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 ...
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 ...