Git - Rocketeers

  [ Rocketeers ](/)   

[Login](https://app.rocketeersapp.com) 

 [← Back to knowledge](https://rocketeersapp.com/index%2ephp/knowledge)

Git
===

[### Git fatal: refusing to merge unrelated histories

This error means Git found no common ancestor between the two branches you are merging. It is a safety check, and there is a one-flag override once you are sure the merge is intentional.

23 June 2026 · Git](https://rocketeersapp.com/index%2ephp/git-refusing-to-merge-unrelated-histories) [### GitHub Permission denied (publickey)

When git clone, pull or push over SSH fails with this error, GitHub did not accept your SSH key. Usually the key is not generated, not added to your account, or not loaded into the agent.

23 June 2026 · Git](https://rocketeersapp.com/index%2ephp/github-permission-denied-publickey) [### Git fatal: not a git repository

This error means you ran a git command somewhere git does not recognise as a repository. Usually you are in the wrong directory, or the repo was never initialised.

23 June 2026 · Git](https://rocketeersapp.com/index%2ephp/git-not-a-git-repository) [### Git: Updates were rejected (non-fast-forward)

A rejected push means the remote branch has commits you do not have locally. Git refuses to overwrite them. The fix is to integrate the remote changes first, not to force-push.

23 June 2026 · Git](https://rocketeersapp.com/index%2ephp/git-updates-were-rejected-non-fast-forward) [### Change casing of file or directory in Git

Renaming already commited files or directories only for casing in Git will be ignored and will not show up as a change you can commit.

29 November 2022 · Git](https://rocketeersapp.com/index%2ephp/change-casing-of-file-or-directory-in-git) [### Removing tracked files in Git that should have been ignored

Removing files that has been committed earlier in your repository is something you encouter once in a while. Read here how you can do this.

27 September 2022 · Git](https://rocketeersapp.com/index%2ephp/removing-tracked-files-git)
