diff --git a/Git/README.md b/Git/README.md
index e6cbd77234332f0611953214efc37207dd4103e2..ad06984fc5fdd38e885afbdd7d96c8405e6839ea 100644
--- a/Git/README.md
+++ b/Git/README.md
@@ -3,6 +3,33 @@ There is a lot of ways how to use git and sometimes a working solution can be ve
 
 [[_TOC_]]
 
+## HowTo add a specif ssh-key for your git account
+Sometimes it might be useful to have different ssh-keys per project or have a special ssh-key just for github/gitlab.
+
+Steps:
+1. Generate a `ssh-keygen`
+2. Add ssh-key to GitHub or GitLab account under settings
+3. Write a `~/.ssh/config` file with a content like this
+
+```
+Host github.com
+	HostName github.com
+	User git
+	IdentityFile ~/.ssh/id_rsa_for_git
+
+Host gitlab.com
+	HostName gitlab.com
+	User git
+	IdentityFile ~/.ssh/id_rsa_for_gitlab
+```
+Make sure that you adjust the `Hostname` accordingly and be sure that you use ssh in your git repo:
+```bash
+$ git remote -v
+origin  git@github.com:USER/repo.git (fetch)
+origin  git@github.com:USER/repo.git (push)
+```
+show no `https` in the urls.
+
 
 ## HowTo Sync a GitHub and a GitLab repository
 It is easy to import a GitHub repo into GitLab and the otherway around. However, if you want to make sure you can have both repos at the same state, you need to syncronize them.
diff --git a/Git/git-repos-sync b/Git/git-repos-sync
index 19695106a628ba63b61bb8d1e88452f1eb12be7e..c1381ee944998470d11d37f8f0b95d1dee9739dd 100755
--- a/Git/git-repos-sync
+++ b/Git/git-repos-sync
@@ -9,6 +9,16 @@ if [ "$#" -ne 3 ]; then
     exit 1
 fi
 
+# Check if you are at root level (fails if not)
+if ! git rev-parse --show-toplevel; then
+	>&2 echo "Git repo found"
+	if [ $PWD == $(git rev-parse --show-toplevel) ]; then
+		echo "Not at root of local repo"
+		echo $(git rev-parse --show-toplevel)
+		exit 1
+	fi
+fi
+
 if [ ! -d ".git" ]; then
 	echo "Git repo for syncronization is not found, creating one..."
 	git init