FAQ Database Discussion Community


Advantages/disadvantages to branches and forks

git,github,git-branch,git-fork
I am currently working on a project via a fork of the main repo. I am committing my changes to <fork>/master and then submitting pull requests to <upstream>/master. I have write permission for <upstream>. Am I correct in thinking that I could make this simpler by deleting my fork and...

Rename git remote name to “upstream”

windows,git,shell,git-remote,git-fork
I have a tiny problem with my git setup. I am working with forked repositories quite often. To fork them, I use the button on GitHub. After that, the command git remote -v shows me "origin" and "original-username". "original-username" is now the upstream branch where I can pull changes from...

Associate git repo with existing fork network

git,github,git-fork
Using GitHub Enterprise, I forked a private repo. I then made the upstream repo public, which broke the 'fork' relationship between the public upstream and my private personal fork (as noted here). I've now also made my copy of the repo public. As far as I can tell, I can...

How much should I rebase interactively? [closed]

git,github,translation,git-fork,rebasing
I would like to translate a larger book hosted at Github. The orignal repo would be forked by me and I'll usually do my work on my own at a new branch. So nobody would really care about a changed history while rebasing interactively. Sometimes a lot of commits only...

error: pathspec 'test-branch' did not match any file(s) known to git

git,github,git-checkout,git-fork
I am a new user of Git. I have forked a repository called Spoon-Knife (available for practicing forking with Git). Then, I cloned it locally by running git clone https://github.com/rohinichoudhary/Spoon-Knife.git This repository contains three branches, i.e. master, test-branch, change-the-title. When I run git branch, it only shows *master, not the...

When to use forks and pull requests in GitHub

git,github,pull-request,git-fork
I am working for an project which has to do with GitHub API, I would like to make such a platform that users that are working on a repo specifically in one Branch in git and once they done with the issue they will do PULL REQUEST from Git, in...

Forking using TFS Git

git,github,tfs,git-fork
I'm in a project now that uses TFS and Git. And i've realized that i am not going to be able to Fork anymore so i thought i would ask you guys what you think about this as a solution. The problem i am having is that i have a...