I’m currently working on a cloud synced feature for my notes using git (+git-crypt) based on the article of Rene Schallner.
I've a directory named Example in which there is :
- Example_laptop (my current repo/notes file)
- Example_bak (as a backup/copy file)
- git-crypt-key (that i've exported by cmd for the further encryption of my repo)
Example_laptop is my repo folder, my notes in Markdown were already there so while in this dir path i did git init, then i set up my .gitignore and .gitattributes (i also config oh-my-zsh), and finally i put my files into "staging" with git add then commit git commit -m '.'.
I was on the step of setting up a remote repo for testing the config as suggested in the article, i created a bare directory in "root" (Home/usr).
$ cd
$ mkdir bare
$ cd bare
$ git init --bare
Then i go back to the repo folder (Example_laptop) and added the bare directory git remote add bare ../bare
But then, when I try git push bare master I get :
fatal: not a git repository (or any of the parent directories): .git
When I do git status in the path Example/Example_laptop I get :
on branch master, nothing to commit, working tree clean
I couldn’t access any repo on my GitHub account
I set up and makes change on git config -global for both username and email