Tag: bitbucket

Remove previous commit from git while keeping latest changes?

I unwittingly added api key information to a public bitbucket repo, and thought I would learn how to remove it down the road. 6 commits later, I’m now getting around to it, and don’t quite understand how to even after reading things like – http://goo.gl/Lf463C. I don’t want to lose my HEAD commit, esp. if […]

Does anybody know how to reject commits with CRLF line endings on Bitbucket?

We want to keep the line endings of committed files to be consistent, permit only unix format, reject any commits which contain CRLF on the server side. But I do not know how to set up pre-receive hook on Bitbucket.

Push destination error after doing a git clone

I just cloned a repository and I was able to to do a git commit -m, but I can’t do a git push as I receive an error: No configured push destination. Either specify the URL from the command-line or configure a remote repository using git remote add <name> <url> and then push using the […]

Xcode: Could not read from remote repository

I am trying to connect Xcode with Git (Bitbucket). I read this question/”tutorial”: In XCode 4 how do I add a remote GitHub repository to an existing local project? I follow all steps but I have a problem. In Xcode 4.6.1 I always obtain this error: “fatal “my_Repo” does not appear to be a git […]

Authentication for git-bitbucket

I am trying to store code on bitbucket using Git,but i got authentication problem. Here i entered password of bitbucket login,but its give an fatal:Authentication failed,so which password can i enter for this problem. git push -u origin master Password for ‘https://prashant_123@bitbucket.org’: fatal: Authentication failed for ‘https://prashant_123@bitbucket.org/prashant_123/test.git/’

How do i clone an old commit into a new repo?

I used git to track changes in a project. The first couple of commits were all about setting up the environment and including a bunch of plugins to get a bare framework. How do i start a new project starting from one of the old commits from my existing project?

Using git submodules with ssh authentication on Openshift

I created a submodule (a bitbucket repo) on my openshift repo. My current .gitmodules configuration: [submodule “php”] path = php url = git@bitbucket.org:sgtcarneiro/repo.git The problem is that after I push this code into my Openshift app i get the folling error: remote: Host key verification failed. remote: fatal: The remote end hung up unexpectedly remote: […]

JGit: Transport Exception – reject HostKey: bitbucket.org

I am using JGit to create and clone a repository (the remote is a bitbucket repo – and yes, I added my deployment key). In essence, I: Create repository Disable JSch strict hostkey checking Set JSch credentials (my ssh key is password protected, hence JSch will fail if I don’t specify a password) Clone the […]

How to clone a django reporsitory into a virtualenv

I’ve got a virtualenv set up for a django app. So far I’ve installed all my packages via pip when the virtualenv is activated, but I now need to clone one from bitbucket. Is there a special way to do this or do I just need to open a terminal, goto venv/lib/python2.7/site-packages and run the […]

Git Including an arbitrarily nested subfolder when its parent has been excluded in .gitignore

I’m excluding a folder a and its subfolders, but want to have a specific subfolder b included, where b can be a subfolder somewhere below a, and the exact path to b has not been specified. My .gitignore contains lines: a/** !a/**/b however this does not work. Have tried numerous other permutations of the above, […]

Git Baby is a git and github fan, let's start git clone.