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
2 answers

Commit only specific path and file to Git?

I'm trying to push just the changed files in a project and their related paths to a specific branch in a remote repo. However, I always get all the files in the project. So, if I make a change to resources/views/index.php and I want to have just…
Joe Lowery
  • 562
  • 11
  • 26
-1
votes
1 answer

Pull unmerged changes from two separate GitHub forks

I know the GitHub Flow is a good Git workflow that simplified the Git workflow. However, there is one case that it doesn't cover -- How to merge two different git repos from different users. Can the GitHub Flow be of any help, or I have to revert to…
xpt
  • 20,363
  • 37
  • 127
  • 216
-1
votes
1 answer

Rollback on remote GIT repo used only for deployment

I have an app hosted on OpenShift, which allows deploying apps by adding it as a Git remote and pushing changes to it. I have added some code that breaks the server startup, so I would like to rollback to a previous commit. To do this I attempted to…
twiz
  • 9,041
  • 8
  • 52
  • 84
-1
votes
2 answers

How do i get commit logs of a remote located branch?

Without cloning the repository, Is it possible to get the following from command-line/git bash, List of branches in the repository git logs of specific branch
VJohn
  • 493
  • 1
  • 14
  • 23
-1
votes
2 answers

Git clone doesn't work remote: Repository not found

I'm trying to clone my private repo from the remote host and it works on every other computer but doesn't work for me for some reason. I have already tried, git remote rm origin and git remote add origin {{url for git repo}} but no luck. Is…
CoderKK
  • 351
  • 1
  • 7
  • 18
-1
votes
1 answer

How to merge a branch from one remote to the origin/master

Let's say I have a repo X on GitHub , and I'm interested in the branch DEV. I also have a repo Y on Codeplex. What I'd like to do is first adding X repo on GitHub as a remote of repo Y; then, I want to be able to fetch the content of X/DEV and merge…
bateman
  • 467
  • 5
  • 13
-1
votes
1 answer

Fetch a remote branch from another repo

I have three machines. On the first one, repo machine1 has a develop branch that is ahead of the develop branch of the second machine, machine2. machine2 has fetched it (but not checked out), so it lives as a remote branch machine1/develop. Now…
CharlesB
  • 86,532
  • 28
  • 194
  • 218
-1
votes
2 answers

Remove refs/remotes entirely

When I do git ls-remote to my remote repository it shows: HEAD refs/heads/BranchA refs/heads/master refs/remotes/origin/BranchA refs/remotes/origin/master How can I delete the last two entries?
Ahmad
  • 2,110
  • 5
  • 26
  • 36
-1
votes
1 answer

Used wrong push URL pushed one repo to another by mistake; how to delete pushed branch/repo without merge?

Question: is there a way to delete remote branches without merging them in? Background: We had a third party do some work for us they use GitHub and we do also So I pulled from there repo and pushed to ours. Unfortunately, I pushed to the wrong…
User
  • 41
  • 1
  • 7
-2
votes
1 answer

Multiple error when trying to push to remote repository

after coding up a javascript project, I wrote git push -u origin main however it gives me back: ssh: connect to host github.com port 22: Undefined error: 0 fatal: Could not read from remote repository. Please make sure you have the correct access…
-2
votes
1 answer

error: RPC failed; curl 18 transfer closed with outstanding read data remaining,

error: RPC failed; curl 18 transfer closed with outstanding read data remaining Please I need help on how to resolve this curl 18 transfer bug.
PROF SAM
  • 21
  • 1
-2
votes
1 answer

Getting "Could not read from remote repository" when trying to update local forked repo from original repo

I created a fork of a repository per the instructions here -- https://guides.github.com/activities/forking/ . Then I cloned this to my local machine. I would like to update my local repository with the files from the master branch of the original…
Dave
  • 15,639
  • 133
  • 442
  • 830
-2
votes
2 answers

git - After removing a remote, its branches are still reported

I ran git remote remove origin;, and after that, git log --all --decorate; shows several branches from origin, such as origin/master, origin/devel, etc. These are not local branches. I've used git remote prune origin and git remote update --prune,…
lmat - Reinstate Monica
  • 7,289
  • 6
  • 48
  • 62
-4
votes
2 answers

I'm trying to push my create-react-app code to github but its not pushing any code and only created a readme file

i created a new react app using create-react-app as seen below I pushed the code following the instructions set by github But, as you will see in the next image, the code hasn't been pushed and only a readme file exists in the repo. How to I solve…
Darius
  • 7
  • 4
-4
votes
1 answer

Cannot push files to remote repository

I cloned an empty repo for a project I'm invited to, but then cannot push files to the remote (first time push). git remote -v origin https://gitlab.com/project-path (fetch) origin https://gitlab.com/project-path (push) I can confirm I…
arilwan
  • 3,374
  • 5
  • 26
  • 62
1 2 3
61
62