Questions tagged [git-remote]

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

git-remote is a command used to manage the set of tracked remote repositories for a git repository. It allows to setup, remove and edit the set of repositories ("remotes") whose branches are tracked.

See the man page.

930 questions
0
votes
2 answers

Using a separate user for multiple Git remotes on the same repository

Is there a way to clone a repository, add a second remote, but use a different/separate user for that second remote automatically when pushing/pulling? My use case is to have the remote "origin" only for pulling (actually checking out) changes with…
thasmo
  • 9,159
  • 6
  • 27
  • 32
0
votes
1 answer

Cannot clone a git repository and have to create a repository locally first and to configure its local remote setting

My ~/.ssh contains two keypairs: id_rsa_foo&id_rsa_foo.pub for user foousername on GitHub (github.com) id_rsa_bar&id_rsa_bar.pub for user barusername on GitHub (github.com) for user barusername on my server (indefero.myserver.com) The…
automatix
  • 14,018
  • 26
  • 105
  • 230
0
votes
1 answer

git send-pack: protocol error: bad band #50

I am trying to push some files to a server with git push. I have configured the server to push the files: git remote set-url test ssh://user@location.com:2200/fullpath/ but I am getting the following error: git send-pack: protocol error: bad band…
Joyce
  • 57
  • 9
0
votes
1 answer

Git: dealing with remote branches from a removed remote

git branch -a shows remotes/team/master and remotes/team/my-branch git remote rm team says "error: Could not remove config section 'remote.team'" (because I edited the config file with a text editor). Since the team remote is gone, how can I…
Robert Claypool
  • 4,262
  • 9
  • 50
  • 61
0
votes
1 answer

view the git repository on remote linux server -> in Windows?

Problem: Need to view Git history visually in windows, repository is on remote Linux server (Ubuntu). Question: What are two easy ways to view the git repository on remote linux server -> in Windows? I have initially tried mirroring the remote…
gogogadgetinternet
  • 5,719
  • 4
  • 24
  • 28
0
votes
1 answer

git remote add -f doesn't add tracking branches

I'm cloning a fork of a project in github and want to set up an upstream remote to track the original project. As I understand things, fetching the upstream remote should create tracking branches of the remotes branches in my local repo, but git…
cori
  • 8,666
  • 7
  • 45
  • 81
0
votes
1 answer

Synchronize remote repositories

I'm looking to synchronize multiple remotes with bare copies of a git repository, such that if a developer adds or updates a branch on one remote, the changes will make it to the other remotes as well. Giving an example: Developer A pushes the new…
Amazingant
  • 531
  • 4
  • 13
0
votes
1 answer

What am I missing when adding a remote github branch?

I am adding a remote repository like this git remote add pythonic https://github.com/sanfx/pythonic.git but I get this error saying fatal: https://github.com/sanfx/pythonic.git/info/refs not found: did you run git update-server-info on the…
Ciasto piekarz
  • 7,853
  • 18
  • 101
  • 197
0
votes
2 answers

issues when trying to push a local repo to a github repo

I'm brand new to git and I'm having major issue when trying to push a local repo to github. I set up a remote repo called origin with my github repo SSH address. Then when I try to push I keep getting the following issues: Macintosh:thinkful…
0
votes
1 answer

github remotes/origin prefixes

I noticed that, for some reason, some of my git branches are prefixed with "remotes/origin": BZ9 * master remotes/origin/BZ8 remotes/origin/BZ9 remotes/origin/HEAD -> origin/master remotes/origin/junit1 …
jayunit100
  • 17,388
  • 22
  • 92
  • 167
0
votes
3 answers

Files don't change on remote

I have 2 remote server one for production and one for testing So, pushing to production is fine since I push master git push production but after I created a branch , checked it out, made changes, created a new commit and pushed to testing the…
Hussein Negm
  • 551
  • 5
  • 17
0
votes
1 answer

error: Untracked working tree file '.gitignore' would be overwritten by merge

What do I have to do to get around this "already up-to-date" error: I created a new local repo and tried to pull the remote master branch. It stumbled over my new .gitignore and errored out. I deleted the .gitignore (to be replaced with the…
doub1ejack
  • 10,627
  • 20
  • 66
  • 125
0
votes
1 answer

What Is The Git Link On A Remote Repository

I am new to git. I have been working on making git push to my remote repository. I have a website with cPanel. I have ssh access and I used the commands from the cPanel Forums. I used this sequence of steps to install git to my remote server which…
Nathan
  • 23
  • 4
0
votes
2 answers

Git rebase - delete a few commits that have been pushed to a remote repository

I coded a time-limited feature that has been merged to master and shipped to production. Now that the time is up, I'd like to remove the commits containing the feature from the code base. Ordinarily I would do a git rebase -i and delete the…
Kevin Burke
  • 61,194
  • 76
  • 188
  • 305
0
votes
2 answers

Remove remote git repository

Is it possible to completely delete a remote repository (assuming I have write access). I'm trying to completely clear a repository on BitBucket and push a fresh copy. I know I can delete and recreate the repo on BitBucket itself, but I was…
Jawap
  • 2,463
  • 3
  • 28
  • 46