Depend on a branch or tag using a git URL in a package.json?

Say I’ve forked a node module with a bugfix and I want to use my fixed version, on a feature branch of course, until the bugfix is merged and released. What would I scribble into the dependencies of my package.json?

BitBucket: Host key authentication failed

I want to clone a remote repository to my local machine. I used the command: git clone git@bitbucket.org:<username>/<repo_name>.git and I got the message: The authenticity of host ‘bitbucket.org (104.192.143.3)’ can’t be established. RSA key fingerprint is SHA256:****. Are you sure you want to continue connecting (yes/no)? Host key verification failed. fatal: Could not read from […]

Cannot push to Git repository on Bitbucket

I created a new repository and I’m running into a strange error. I’ve used Git before on Bitbucket but I just reformatted and now I can’t seem to get Git to work. After doing a commit, I had to add my email and name to the globals, but then it committed just fine. When I […]

Structuring related components in git

My team is considering a move from about 2 dozen subversion repos into git repos. What we are trying to remedy is that currently, everyone has their own subversion repo for each of their product components. What I’d like to do is try to reduce some sprawl we have and help build a clear path […]

Convert line-endings for whole directory tree (Git)

Following situation: I’m working on a Mac running OS X and recently joined a project whose members so far all use Windows. One of my first tasks was to set up the codebase in a Git repository, so I pulled the directory tree from FTP and tried to check it into the Git repo I […]

“tag already exists in the remote” error after recreating the git tag

I get the following error after I run the steps below: To git@provider.com:username/repo-name.git ! [rejected] dev -> dev (already exists) error: failed to push some refs to ‘git@provider.com:username/repo-name.git’ hint: Updates were rejected because the tag already exists in the remote. Created the repository Cloned the repo on the local machine. Modified the README file, commited […]

unable to remove file that really exists – fatal: pathspec … did not match any files

unable to remove file that really exists – fatal: pathspec … did not match any files I have a file under git control that simply will not be deleted. The failing command is: $ git rm .idea/workspace.xml fatal: pathspec ‘.idea/workspace.xml’ did not match any files Below I list the directory contents, branches, etc. So far […]

Predict how much data will be pushed in a git push

I am occasionally on an expensive Internet connection and I would like to know (at least approximately) how much data will be pushed to the remote in a git push.

Switch branch names in git

There may be more than one way to ask this question, so here’s a desciption of the problem. I was working on master and committed some stuff and then decided I wanted to put that work on hold. I backed up a few commits and then branched from before I started my crap work. Practically […]

Find commit where file was added

Say I have a file foo.js that was committed some time ago. I would like to simply find the commit where this file was first added. After reading the answers and my own tinkering, this works for me git log –follow –diff-filter=A –find-renames=40% foo.js

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