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
17
votes
3 answers

How to use multiple remotes with GitKraken

I'm using GitKraken quite frequently, but I cannot manage how to set to which remote I want to push. In the context menu I cannot find any entry like "use this remote for push/pull". I have to set it via the command line, then it works as expected.…
Karl Zeilhofer
  • 420
  • 1
  • 4
  • 10
16
votes
4 answers

How do I move my remote git repo to another remote git repo?

I want to move my remote git repository and all its branches to a new remote repository. old remote = git@github.com:thunderrabbit/thunderrabbit.github.com.git new remote = git@newhub.example.net:tr/tr.newrepo.git
Thunder Rabbit
  • 5,405
  • 8
  • 44
  • 82
15
votes
2 answers

how can I do a git pull in the gitg / gitx visual tool?

I can do a push using gitg and push my code to the remote master branch but I can't see any option to do a git pull. I am on Ubuntu 10 and 11
Michael Durrant
  • 93,410
  • 97
  • 333
  • 497
15
votes
2 answers

Rebase remote branch onto master while keeping the remote branch updated

I am trying to rebase my remote branch onto master, but I want to keep the remote branch pointing to it's commits, just based at a different point in master. Here is my structure: A - B - C - D (origin/master) \ R - S - T (origin/develop) I…
Andrew
  • 1,355
  • 2
  • 13
  • 28
15
votes
2 answers

Git - deploy dist folder to different remote

I'm trying to figure out a way to deploy a dist folder to a different remote repo using Git. The working project is stored in an app folder. I use grunt to optimize and compile the working project into a dist folder. I want to know if there is a…
pixelworlds
  • 818
  • 2
  • 11
  • 22
14
votes
1 answer

After git revert, merge showing no changes and already updated

I have a dev branch which already merged with branches featureA and featureB. I merged that dev branch to master and pushed to remote. Later I identified featureB is not yet ready to merge with master as there is a faulty commit. So I revert that…
Mohammed Safeer
  • 20,751
  • 8
  • 75
  • 78
14
votes
2 answers

How to push an existing branch into a new repo using git?

I'm currently working on a project where we have a UI branch and a Services branch (not my branching design). We now need to separate them into two distinct repos. I am trying to find the best way to do this while preserving the history and not…
Ryan
  • 143
  • 1
  • 4
14
votes
2 answers

Git forking workflow, what names for the remotes?

I can choose any names for the remotes defined in my local repository. Regardless of preferences and opinions: What names should I choose, to work best with the tool defaults? Using Git with a forking workflow for collaboration is a popular and…
bignose
  • 30,281
  • 14
  • 77
  • 110
14
votes
2 answers

How to create a new remote branch with EGit?

Let's say I have an Eclipse Project which uses versioning control with EGit and is connected with a remote repository git@myrepo.com:git2013. In my project, under the local branch newstuff, I create and change some files. Now, I want to push this to…
Above
  • 235
  • 2
  • 3
  • 9
13
votes
3 answers

Git: Connect existing local repository to existing remote repository

This is probably pretty basic, but I wasn't able to figure it out yet: I have a PHP project running on two servers, let's refer to those as Live and Staging Both servers are running the same project obviously but with some changes. The project was…
Chaz
  • 672
  • 1
  • 5
  • 19
13
votes
3 answers

Setting-up local git repository

I am a fan of using GitHub as my project file repository. But it interest me more if I am able to create a repository on this computer on a different directory path. Then clone that create repository on my new working directory. I was planning to…
David B
  • 3,269
  • 12
  • 48
  • 80
12
votes
5 answers

fatal: unable to connect to github.com: github.com[0: 140.82.121.4]: errno=Unknown error

I'm having a problem with my Git account. Every time I execute git push, I get the following error: I discovered that I'm working with an SSH URL: I tried switching back to an HTTPS URL using the following commands: git config --global…
Ahlem Tbini
  • 131
  • 1
  • 1
  • 3
12
votes
2 answers

Deleted Git tags restore themselves

We recently ran into an issue with tags in our Git repository. We deleted our tags locally and remotely, yet they kept restoring itself every time we either push to or fetch from remote. We are currently working in a team of three and when we think…
David C.
  • 253
  • 2
  • 12
12
votes
3 answers

Can not create a local and remote branch (tracking) at the same time

From Pro Git: you can set up other tracking branches if you wish — ones that don’t track branches on origin and don’t track the master branch. The simple case is the example you just saw, running git checkout -b [branch] …
Jim
  • 18,826
  • 34
  • 135
  • 254
11
votes
3 answers

Retrieve missing files from remote repo?

I accidentally deleted a few files from my local git repo. I have not pushed this change to the remote. Is there a easy way to get these files back from the remote? Normally I would just do a git clone but it seems there should be a better way.
Zombo
  • 1
  • 62
  • 391
  • 407