Dealing with Git unlink file errors
Chances are when using Git for your version management needs you may have encountered an error warning in the terminal similar to the following:
Counting objects: 2106547, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (269562/269562), done.
Writing objects: 100% (2106547/2106547), done.
Total 2106547 (delta 636114), reused 2106547 (delta 636114)
Unlink of file '.git/objects/pack/pack-105e2cad4265551672452c ... 5127bac40.pack'
failed. Should I try again? (y/n)
Pretty annoying right?
Fixing this is actually pretty simple...
Undoing a local Git merge
Git is a fantastic tool for managing project code within a team context but, as with any tool, there'll always be occasions when you run into problems.
One such problem might occur where you want to undo a local branch merge that hasn't been pushed to the remote repository. Sounds tricky right?
The following are ways in which this can be accomplished relatively quickly...
Git shortcut for adding and committing changes
Here's a great shortcut when using Git to simultaneously add and commit changes to your repository.
Resolving public key permission denied errors with bitbucket
You've set up your remote Bitbucket repository and the corresponding SSH keys have been generated. You're making your first commit and the terminal application displays the following error:
Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
Not sure what's happening or how to begin resolving this?
Setting up SSH keys on Mac OS X for Bitbucket
If you're using a Git based source control management (SCM) service you'll need to create and configure SSH keys to facilitate trusted communication between your computer and the remote SCM repository. If you're using Mac OS X (or similar unix based system) then this process turns out to be relatively simple.
In the following article we'll show you how to accomplish this so you can safely and securely connect to one such SCM service - Bitbucket.