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
50
votes
5 answers

How to connect to a remote Git repository?

I am working with a team and we want to use Git (Not with GitHub, we have a private remote machine). We were using SVN until now. We have a remote machine that works like an SVN repository. Now, we want to turn this machine into the Git central…
Mateus Viccari
  • 7,389
  • 14
  • 65
  • 101
49
votes
7 answers

How do I add a remote Git repository to an Ubuntu Server?

I have created a Git repository on my Desktop machine (Windows 7) with: git init git add git commit -m "added my files" Now I have installed a new Ubuntu Server 10.10 on a machine on my LAN and installed OpenSSH. My home directory is…
Jonas
  • 121,568
  • 97
  • 310
  • 388
48
votes
2 answers

git push to remote branch

Folks, I had cloned a repo. I created a branch out of it to work on a feature by issuing the following command: git branch fix78 then I worked on that branch by git checkout fix78 I continued to make commits to this local branch. Now I wanted to…
Rubyalto
  • 551
  • 2
  • 6
  • 5
47
votes
5 answers

How can I tell which remote "parent" branch my branch is based on?

I have a scenario in which there a several remote tracking branches within my local repository that I must sync up to. Our workflow model is: make a branch locally, based off of the desired remote tracking branch make our…
Andrew Falanga
  • 471
  • 1
  • 4
  • 3
46
votes
3 answers

Will remote URL for fetch and push be different?

git remote --v show remote info origin https://github.com/test/testing-iOS.git (fetch) origin https://github.com/test/testing-iOS.git (push) It shows that both fetch and push are using the same remote URL. Question: When will (if ever) remote URL…
Boon
  • 40,656
  • 60
  • 209
  • 315
39
votes
5 answers

How to undo 'git fetch'

I just added additional remote A to my repo B and then run git fetch A. How can I undo the fetch? If I just remove remote A: git remote remove A1 would it undo fetch? UPDATE: $ git remote add A path/to/A $ git fetch A The above are commands I run…
Sergino
  • 10,128
  • 30
  • 98
  • 159
39
votes
3 answers

EGit: Pruning Remote Tracking Branches that have been Deleted on the Remote Repo

I'm using EGit (for Eclipse) with a team of devs. We have been creating a lot of feature and fix branches for new work, and then merging them into our release branches when they are completed. Right after they are merged into the correct release…
Steven Byle
  • 13,149
  • 4
  • 45
  • 57
37
votes
1 answer

Track multiple remote branches

So let's say there are three developers: Alice, Bob, and Cecil. They decide to use Git without a central repo. They all set up remotes to each other, so that: Alice has remotes/bob/master Alice has remotes/cecil/master Bob has…
Jasiu
  • 2,674
  • 2
  • 27
  • 27
33
votes
4 answers

git push to remote repository "Could not read from remote repository"

I searched for a while but I can't find a solution to my Problem. I have a Server I can connect to via ssh with the username git and a local git repository. Now I want to push my local repository to a newly created one on the Server. Here is what I…
user1090755
  • 517
  • 1
  • 4
  • 14
31
votes
4 answers

Git create remote repository on push

I have been trying to figure this one out but I am having a hard time doing so. I am currently working on an open source project that requires me to allow a user to push to remote repository without it already existing there. I want to avoid…
Michael van Rooijen
  • 6,683
  • 5
  • 37
  • 33
30
votes
3 answers

How to list unpushed Git tags

I'd like to see which tags I have locally that aren't available on a particular remote. How can I do this? I know I can do git push --tags to push all of them. However, if there are some tags that I don't want pushed, how to I make sure I haven't…
Ben Lings
  • 28,823
  • 13
  • 72
  • 81
29
votes
4 answers

git rebase onto remote updates

I work with a small team that uses git for source code management. Recently, we have been doing topic branches to keep track of features then merging them into master locally then pushing them to a central git repository on a remote server. This…
Blake Chambers
  • 505
  • 1
  • 5
  • 14
27
votes
1 answer

How do I access a git repo on a windows share?

I want to be able to sync a work repo from my Windows 7 desktop to my Windows 7 laptop without pushing my commits to our main server. How do I do this? I can't figure out how to set up a remote path so that git can understand where it is. I…
Charles Randall
  • 6,920
  • 12
  • 33
  • 38
27
votes
1 answer

"Proper" way to pull git "production branch" to production server

I'm quite new to Git, and have read the Pro Git book @ http://git-scm.com/book/en/Git-Branching-Basic-Branching-and-Merging. My question is if what I'm doing today is the prefered way to work with production server and a remote Git repo. I have my…
dropson
  • 1,111
  • 2
  • 12
  • 23
26
votes
2 answers

How do I check if a file exists in a remote?

Is there a way to check if a file under specified, relative path exist in a remote? I'm fine with fetching the info first if it's the only option. In other words I'm looking for git-ls-files with an option to specify remote and branch. I'm only…
zaza
  • 1,379
  • 2
  • 13
  • 21