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

Get difference of remote and local branch

I've created a remote branch (dev_admin) which one can see by running the command 'git remote -v'. Another default branch is on my local (master) which one can view by running the command 'git branch'. I want to get the difference of these two…
p4avinash
  • 548
  • 2
  • 4
  • 15
-1
votes
1 answer

Am unable to push my project folder to GitHub

I am unable to push my project folder on my laptop to GitHub using git. This is the error it brings below after i had entered the command in the git bash 'git push -u origin master'. I also have my internet connection on remote: permission to…
Dlaw
  • 21
  • 3
-1
votes
1 answer

How to view branch of a forked repository into my local repository?

I have a private repository which someone forked. He created a branch in his forked repository, made some changes, and created a pull request back to the original repository which is owned by me. I can see his Pull request as well as the branch in…
-1
votes
1 answer

How to PUSH local branch develop to remote branch develop_1

I have 2 remotes: origin and bit and local repository. I want to pull from origin branch develop to local, and then from local push it to remote bit but branch develop2. I've tried: git switch develop git pull origin git push bit develop2 How to…
simoN
  • 65
  • 2
  • 12
-1
votes
1 answer

make git branch ffwd-able again after adding unrelated file?

I have a local master branch, tracking origin/master, which was forked from (let's say) upstream/stable at some point. I could pull / merge from upstream/stable as changes became available, then send those changes on to origin/master. Everything was…
usretc
  • 723
  • 4
  • 9
-1
votes
1 answer

Git returns "forbidden" when trying to view origin URL

I am trying to pull some code into a server that I haven't touched in a while However, when I tried pulling, I got forbidden. So I'm curious if the server project has the wrong git address. But when I try just looking at the Git address via git…
CodyBugstein
  • 21,984
  • 61
  • 207
  • 363
-1
votes
1 answer

How to push changes to git hub?

How to push changes to remote repository? I had one local project then i push this project to remote repository. Then I made some changes locally by creating a branch and merging it with master branch Now i am not able to push these changes to…
vicky
  • 3
  • 2
-1
votes
2 answers

pull another branch from remote to local

I want to do a pull a branch branch_1 that exists on remote repository. Results: I have branch_1 on my local repository tracking the same branch_1 on the remote repository.
hamam
  • 47
  • 7
-1
votes
2 answers

How to change default remote repository?

I have 2 remove repositories (origin1 and origin2 for example). And origin1 is my default remote repo. How can I change my default remote repo, so when i do git push commits push to origin2.
SsPay
  • 177
  • 1
  • 10
-1
votes
1 answer

Create remote that is not HEAD-less but does not have a master branch

I am new to git and was following the following excellent instruction from Missing Semester. About 1 hour in, they discuss remotes. I went through the process of creating a remote (as a sub-directory for testing), however, I purposefully deviated…
Anthony Mannucci
  • 277
  • 2
  • 12
-1
votes
1 answer

How to push changes made in a repository to another one

So I have a repository A. I want to push all the changes made (and the history) to another repository B. So, here's what i did: git clone [A URL] cd A // now i'm in the A directory (just to be clear) git remote add TeamRepo [B URL] // adds the B…
Andrei Manolache
  • 766
  • 1
  • 8
  • 17
-1
votes
1 answer

How to hide one remote's commit history from other remotes?

Suppose I've multiple remotes for a single repository. Most of the time I use one git account for the development purpose, and when I'm finished, I push the final version to another remote. Now, how can I hide my commit history of the first remote…
md mamun
  • 7
  • 2
-1
votes
1 answer

Unable to delete origin remote in Git Repository

I somehow mucked up a locally hosted repository of mine, not sure how though. If I create a fresh clone of this project and look at my remotes I get the following. Note, GitHandle is an SSH alias which is working. For clarity, I'll refer to the…
d.lanza38
  • 2,525
  • 7
  • 30
  • 52
-1
votes
1 answer

Git cannot push to remote bare repo

What I would like to do : I would like to create a remote that points to a bare git repository on a vps server accessible through ssh. This bare repository will embed a hook to fetch the latest branch version into another directory on the same vps…
thiout_p
  • 717
  • 11
  • 15
-1
votes
1 answer

Git pull from from other repo and push changes to current repo

I'm trying to pull contents from Repo1 and push those contents to RepoX. Below are the commands I've used so far, git remote add Repo1 [repo1 url] git pull Repo1 feature/branceName With the above commands I could successfully pull contents from…
aqw123
  • 11
  • 1
  • 7
1 2 3
61
62