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
1 answer

different command to create a remote repo in Git

What are differences between these commands in Git (VCS tool) : $ git init --bare $ git init --bare --shared $ git init --bare --shared=group Would you please explain to me?
hd.
  • 17,596
  • 46
  • 115
  • 165
0
votes
1 answer

How do I set git up to keep my files in sync?

I'm having a problem with getting my Git repository to function the way that I want it to. I'm sure it can do what I want, but I'm just not figuring it out on my own. Here's my setup... PC1: This is my dev machine where I created the repository,…
scott80109
  • 361
  • 6
  • 25
0
votes
2 answers

git multi master setup?

I have been tasked with configuring the following setup. Currently, we have an internal canonical repo for an opensource project. We have a post-receive hook that pushes any updates to a remote repository exposed to the public. Joe Public can pull…
0
votes
1 answer

Git remote branch

Today I try to track a remote branch (specifically, Mapbox-ios-sdk's 23-callouts. So, what's the difference between the following three commands: git checkout remotes/origin/23-callouts git checkout -b remotes/origin/23-callouts git checkout -b…
huggie
  • 17,587
  • 27
  • 82
  • 139
0
votes
2 answers

Git: How to push only tracked files to remote

I've seen many variants of this question on SO but none of them had what I looking for. Say I have a repo ~/MyRepo/: $ ls -a ~/MyRepo code.r junk.txt .git In MyRepo only the file code.r is being tracked, and junk.txt is not tracked. And say I have…
Prasad Chalasani
  • 19,912
  • 7
  • 51
  • 73
0
votes
1 answer

How to add remote Git repo to local repo and keep it updated?

I have authorization by public_key to remote repo and I can get everything from http://someurl/first.git on my local machine, but I have to populate this changes to other environments. To make it possible I have to put there my private_key, clone…
Viacheslav Kondratiuk
  • 8,493
  • 9
  • 49
  • 81
0
votes
1 answer

Merged git remotes not visible on single remote

I've the following git remote configuration in order to push changes to two separate repositories (inspired by pull/push from multiple remote locations): [remote "origin"] fetch = +refs/heads/*:refs/remotes/origin/* url =…
sgrodzicki
  • 1,064
  • 8
  • 6
0
votes
1 answer

Repairing git branch: refs now show refs/remotes/branch and refs/remotes/origin/branch

I screwed up a local branch on my computer by rebasing it to some other branch. I wanted to rebase but I didn't switch to the branch I wanted to rebase, and as a result I screwed up somebranch. I had no idea how to undo my rebase screwup in…
loop
  • 3,460
  • 5
  • 34
  • 57
-1
votes
2 answers

I'm working on a project from two different computers, how do I simply replace the local repo 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 Github. Just a simple replace this, with that I've…
js1069
  • 31
  • 6
-1
votes
1 answer

Git not using custom origin port, falls back to 22

I have remote which has a URL git@gitea.kong: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: Could not read from remote repository. Please…
Dusan Gligoric
  • 582
  • 3
  • 21
-1
votes
1 answer

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?
-1
votes
2 answers

How to remove remote url from Github repository

I'm sure this is a super simple question but I wasn't able to find an answer to it, so I'm extremely grateful for your answers! I have created a boilerplate repository that I (and anybody else) can copy as a starting point for a new project. Here's…
Antti
  • 13
  • 3
-1
votes
1 answer

Physical vs logical files in Git local repo

I am trying to understand Git workflows. If for example I see following random pictures taken from on the net: Git workflow 1 Git workflow 2 Git workflow 3 They show a Remote directory and 3 Local directories namely Working dir, Staging area and…
Marina
  • 13
  • 4
-1
votes
2 answers

store git passwd in local

I have a git remote repository and a username and password on it. When I clone my repo, Because it has many sub repo inner. For each time I have to enter my username and password. I can oly read from git server. How do I store permanently my…
PersianGulf
  • 2,845
  • 6
  • 47
  • 67
-1
votes
1 answer

Exchange changes in Git on two different windows PC

We have a team of 5 people and we can git setup on each PC. Now let's say Tester1 reports some bug and Dev1 fixes that bug. Now, Dev1 doesn't want to push that change to the centralized system without confirmation of Tester1. Our Goal is Dev1 can…