Questions tagged [git-remote]
git-remote is a command used to manage the set of tracked remote repositories.
939
questions
0
votes
0
answers
19
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&...
0
votes
0
answers
51
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 ...
-1
votes
2
answers
92
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 ...
0
votes
0
answers
36
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 ...
0
votes
0
answers
18
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. ...
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 ...
0
votes
1
answer
101
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 ...
1
vote
1
answer
112
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 ...
0
votes
2
answers
63
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 ...
-1
votes
2
answers
44
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 ...
1
vote
2
answers
49
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 ...
-1
votes
2
answers
59
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 ...
0
votes
0
answers
25
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)...
-1
votes
1
answer
17
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: ...
0
votes
0
answers
26
views
Not a git repository although git init was typed before git remote and repository URL was entered in the remote command
My friend is working on a Pokemon Emerald ROM Hack, and he wanted to merge into the Dynamic Overworld System as part of it. However, git remote was unsuccessful.
He typed git init before remoting
He ...
0
votes
0
answers
46
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 ...
0
votes
1
answer
87
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 it exists, because it show up with git ls-remote:
$ git ls-remote
242d56fbd8d8af67df3157bd047252f5580e3df8 HEAD
...
0
votes
0
answers
73
views
Add multi-participants with git-remote-gcrypt
I'm learnning 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 ...
0
votes
1
answer
54
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 ...
0
votes
1
answer
69
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 ...
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$ ...
0
votes
1
answer
30
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 ...
0
votes
1
answer
71
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 ...
0
votes
0
answers
22
views
Having 2 git remotes, one with git lfs the other without
I have a tricky situation. I have a project, there are 2 remotes, a personal gitlab remote and a remote hosted by my organization.
It seems the organization git server cannot handle/ does not have git-...
0
votes
1
answer
855
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 ...
0
votes
1
answer
197
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 ...
0
votes
1
answer
140
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 ...
0
votes
1
answer
94
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 ...
1
vote
2
answers
117
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 ❯ ...
0
votes
2
answers
104
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 ...
0
votes
0
answers
169
views
GitHub Remote Repositories throwing error on MacOS
When trying to use Remote Repositories in VSCode, I get this error:
Error running command remoteHub.openRepository: this.a.logEvent is not a function. This is likely caused by the extension that ...
0
votes
1
answer
28
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?
2
votes
2
answers
634
views
After rebasing my feature branch from main, I now have a divergence and then my branch is ahead by X commits
I have a feature branch called feature I made changes to this local feature branch and I committed them and pushed them. I looked at my branch tree and I noticed my feature branch is not up to date ...
0
votes
2
answers
107
views
List all repository branches in Jenkins Parameter
I am trying to add Active choice paramtere for Jenkins job to populate all the github branches. I've added personal access token in Jenkins credentials and trying to use that.
so, far I've tried below ...
1
vote
0
answers
36
views
How do i loading dataset when running workflow in remote repo using a relative path when actual downloaded dataset is residing in a local repo?
I have a info.db file saved in a 'data' folder residing in my local repo.
I want to run a github-actions.yml workflow file (which calls a bash script that runs a .py file) in github-actions. The .py ...
1
vote
1
answer
88
views
git fetch a tag from a remote, but could not see it from "git tag"
git fetch a tag from a remote, but could not see it local.
git remote add remote1 c:\repo\project1.git
git fetch remote1 tag_1.0
From c:\repo\project1
* tag tag_1.0 -> ...
0
votes
1
answer
33
views
I misstyped git remote add
I misstyped "git remote add origin ...".
Actually, i typed "git remote add orginin".
How can i change it back to origin ?
I rather not delete my local repository, if i can just ...
2
votes
1
answer
34
views
How to find local git repositories without remote origin?
Local git repositories often start out without a remote repository.
How can one find all those repos which haven't been pushed yet (=have no remote origin attached to them)?
Recursive folder searches ...
1
vote
0
answers
40
views
How can I clone a subfolder of a git repository into another git repository as a submodule?
I'm new to git and git submodules. Although I've done some research I can't seem to find a proper answer to what I'm trying to achieve.
So suppose I have a repository called Big Repo cloned locally on ...
-1
votes
1
answer
24
views
Drop/delete remote commits from branch
After rebasing and dropping/using fixup on a few commits from my branch locally, I noticed that there are 4 commits on the pull request that I can't find locally. How do I get rid of those?
0
votes
1
answer
94
views
git push hangs on the "Total" line only for a specific branch
I'm trying to push 4 commits on a specific local branch to my remote repository which is on a private Git server. The push progress is displayed as follows:
Enumerating objects: 152, done.
Counting ...
0
votes
0
answers
34
views
How to move (i.e. reset) a local git upstream tracking branch? e.g. to "undo" a `git fetch origin main`
AFAIK the only git command to manipulate upstream tracking branches is git fetch (and other commands that trigger a fetch), but they only really allow a "fast forward" operation against the ...
1
vote
1
answer
264
views
Git config remote.origin.tagOpt --no-tags has no apparent effect
Every time I try to update a particular repository, it fails because the maintainer regularly changes the nightly tag:
$ git fetch
From https://github.com/kyazdani42/nvim-tree.lua
! [rejected] ...
0
votes
1
answer
2k
views
Unencrypted HTTP is not supported for Gitlab
When I try to clone a project from GitLab to Android studio, I get an error saying clone failed and GitLab url is HTTP.
Error message is:
Unencrypted HTTP is not supported for Gitlab.
The same ...
1
vote
1
answer
78
views
Why doesn't github throw an error ! [remote rejected] master -> master (branch is currently checked out) and a remote server does?
Suppose I do this.
Using github
on local machine:
git init testrepo
on github: make a repo test.git pressing buttons in the web interface
on local:
cd testrepo
git remote add origin https://github....
0
votes
1
answer
142
views
How to configure remote upstream without `git push`
Is it to possible to configure the remote upstream branch for a new local branch without doing a git push?
I thought this is what --set-upstream-to option of git branch is for but I get the following ...
1
vote
1
answer
447
views
Cannot see remote branches in WebStorm
I have added another remote in WebStorm, but I'm unable to see the list of branches for all remotes, only the "origin" remote is listed:
Here is my .git/config:
[core]
...
1
vote
0
answers
117
views
How can I grab specific SHA-1 hashes from remote repositories?
This script iterates multiple Git repositories in order to get their latest commit SHA-1 per branch.
These commands are launched inside an arbitrary .git directory, so Git commands can be invoked ...
0
votes
1
answer
364
views
Commit git submodule in a parent module
I git cloned a public project (read-only)
and I changed some code of it.
and then, I would like to upload it in my private git just for storing.
SUMMARY
I want to make my private git repo which ...
0
votes
1
answer
143
views
git remote has no output
I recently got a new Apple silicon Mac, where previously I've used Linux/Ubuntu. I'm using zsh in the default terminal app. I noticed that using
git remote
git remote -v
have no output even though I'...