Questions tagged [remote-branch]

133 questions
0
votes
1 answer

What is the purpose of git tracking branches?

I created a tracking branch so whowasout.com tracked whowasout.com/master $ git remote -v origin git@github.com:venkatd/whowentout.git (fetch) origin git@github.com:venkatd/whowentout.git (push) whowasout.com git@git01.phpfog.com:whowasout.com…
Venkat D.
  • 2,879
  • 32
  • 39
0
votes
0 answers

Restore remote branch to previous commit

By mistake I did few wrong commits. Now I want to restore my develop branch to a perticular commit-ID. I tried $git reset --hard 9f3df1996f435907575acafe922b22b88e6f10c4 HEAD is now at 9f3df19 Merge pull request #1 from txxxx/feature-1 This has…
AWS_Beginner
  • 161
  • 11
0
votes
3 answers

hook to limit push to only one branch at a time

I’m trying to create a hook that blocks pushes to a remote repository if you are trying to push more than once branch. Here’s the hook: #!/bin/bash HG_EXE="/opt/csw/bin/hg" CHANGESETS=`${HG_EXE} log -r $1:tip --template '{node} '` i=0 for…
0
votes
0 answers

Git cannot fetch remote branch

I am attempting to run the command git checkout -b feature origin/feature I have a repository I've cloned down with the below lines with help from this question: (Git Clone is too slow) $ git clone --depth=1 git@URL/path/to/repository.git $ git…
0
votes
1 answer

Git: create fork of project after having worked on a clone of that project

I am currently working on a project in which I have the reporter rights (not allowed to push etc.). Unfortunately I did not create a fork, but cloned the original one on my machine and now I am struggling with the idea how to publish it to get…
0
votes
1 answer

How to integrate svn branches into git branches with git-svn?

i have not much svn experience but i am used to work with git. I have the following svn repository structure and revisions. https://server/svn/solution/trunk/solution.sln @r100 https://server/svn/solution/trunk/project1/project1.csproj…
mrt181
  • 4,448
  • 8
  • 58
  • 82
0
votes
1 answer

Local Branches Not On Remote Branch

I have a project that needs to diverge into 3 different branches. Those branches will never be merged anymore (though certain fixes might have to be applied to all 3 branches). In the image below "master" is one of the branches. "Branch1" and…
Hu F.
  • 33
  • 6
0
votes
1 answer

Delete remote branch in SAP Web IDE

I created a remote Branch but with the wrong name and now I want to delete the remote branch. The problem is I don't now how because if I right-click one the Project->Git there is only an option to create a remote branch but no option to delete one.…
DarkPlaymo
  • 11
  • 2
0
votes
1 answer

Different remote name GIT, fetch using GUI

At work we have a problem using GIT GUI for bitbucket. I have a project on Bitbucket named TestProject, a remote named bitbucket for local repo, so when I push to remote I have a remote branch called remotes/bitbucket/master. My coworker has a…
Marcx
  • 6,608
  • 4
  • 43
  • 69
0
votes
1 answer

How to start working off a remote branch, Github

I am new to Github and i have a question that i have been trying to find an answer. Say i have three repositories, Origin, Repo1 (my repo - forked from Origin), Repo2 (my colleague's repo forked from Origin). We work on our own repos, and then make…
user2070333
  • 235
  • 2
  • 11
0
votes
1 answer

Swith remote branches in git

Say I have two remote git branches, A and B. I want branch A to contain the contents of branch B and later remove B, so that only branch A remains with B's original contents. Unfortunately, the remote repository won't allow my to simply delete the…
nbubis
  • 1,872
  • 4
  • 26
  • 40
0
votes
1 answer

Push entire remote git repository to another remote

I've forked my project off the wrong project (I forked a fork) and I want to reset my GitHub repository to be forked off of the original. Moving a fork in GitHub involves dropping and reforking AFAIK. The only problem is I want to push my old…
lanierhall
  • 486
  • 4
  • 15
0
votes
1 answer

Difference in remote branches in git

When I clone our repository from the server fresh, I see much less remote branches than on the clone that existed for a while now: $ git branch -r | wc -l 90 $ git branch -r | wc -l 376 At times we 'clean' old branches by tagging and…
TeTeT
  • 1,864
  • 17
  • 29
0
votes
0 answers

Git delete remote branch and move branch off master, and push remotely

I am on local master branch and created subbranch. I then tried to push it, so that others can access to this branch and work on it too, but it failed. Then I thought I should create a remote branch, so I ran git push origin subBran The branch was…
user2751691
  • 383
  • 2
  • 7
  • 28
0
votes
1 answer

get remote git branch when remote is not available anymore

When I type git branch -avv it shows me the list of all branches: local and remote ones git branch -avv master 2fa4d6c [origin/master] RT92026 Modified 'update' for the STM32F429 Discovery to use 'image'. Removed 'eimage'. …
pulse
  • 129
  • 2
  • 14
1 2 3
8
9