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?
I want to clone a remote repository to my local machine. I used the command: git clone email@example.com:<username>/<repo_name>.git and I got the message: The authenticity of host ‘bitbucket.org (22.214.171.124)’ 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 […]
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 […]
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 […]
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 […]
I get the following error after I run the steps below: To firstname.lastname@example.org:username/repo-name.git ! [rejected] dev -> dev (already exists) error: failed to push some refs to ‘email@example.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 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 […]
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.
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 […]
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