How to fork a branch and not the repository?

In github (and in git’s mental framework) you clone and fork repositories. There’s no way to fork a branch; that doesn’t make sense. Just fork the project, and work off the branch you’re interested in. You don’t lose anything by doing so. “Working off a branch” usually means you clone a repository (e.g. git clone … Read more

How to clone a bitbucket repository?

On the left side of bitbucket screen there is a vertical column with buttons. The second button from the top is “CLONE” button . Press on this button .You will get HTTP address . Copy this address and use in git in regular way : git clone <HTTP address of repo>

Progress indicator for git clone

Not really. There are various stages to git clone: discover the objects that need to be sent (“Counting objects: nnn”) compress and send those objects index the received pack check out received files Stage 1 involves walking through the commit graph from each branch head finding all the commits and associated objects: since there is … Read more

Tell git which SSH config file to use

on command-line you can change your Git config for the current repository: git config core.sshCommand “ssh -F ~/.ssh/system-a/config” or in .git/config in your local repository to the [core] section: sshCommand = “ssh -F ~/.ssh/system-a/config” This works only with git 2.10 and newer. Otherwise, it needs to be set up using environment variable $GIT_SSH_COMMAND, for example … Read more

Git branch not returning any results

That’s because you have not yet committed anything, when you do git checkout -b test, git modifies content of the .git/HEAD file from ref: refs/heads/master to ref: refs/heads/test, which actually points to nothing. Only after you make a commit will git create the test refs for you and you will find a .git/refs/heads/test file, which … Read more

Issues with Git – rebase / squash

The problem is that when sublimetext2 is started, it doesn’t block and immediately returns. Git then thinks that you’re done editing the file and performs the rebase. That’s why you see the Successfully rebased and updated refs/heads/staging message, before you even edited the file. Use the subl command instead, which is designed for such use. … Read more

the git clone is empty? why this happens

This particular git repository seems to not have any contents on its master branch, which is the branch git checks out by default. It does however have another branch: % git branch -a * master remotes/origin/HEAD -> origin/master remotes/origin/android-msm-2.6.35 remotes/origin/master So if you check out this branch: % git checkout android-msm-2.6.35 Checking out files: 100% … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)