Git Repository -> ICloud

1) we need a simbolic link

$ cd ~
$ ln -s Library/Mobile\ Documents/com~apple~CloudDocs/ ICloud
$ cd ICloud

2) create a git repository

$ mkdir git-repos && cd $_
$ git init –bare my-gitproject.git

3) Now we got to our local project, that we want to develop in the version controll git

$ cd ~/develop
$ mkdir my-new-project && cd $_
$ echo “.DS_Store” > .gitignore
$ echo “write your doku here :)” > README

$ git init
$ git add .
$ git commit -m “initial commit”
$ git remote add origin ~/ICloud/git-repos/my-new-project.git
$ git push -u origin master

Finished in 3 simple Steps
Darth Papa
Sith
Open chat
💬 Need help?
Hello 👋
Can we help you?