Setting up a personal git repository with dropbox

There’s a simple reference to get started using git.
http://rogerdudler.github.io/git-guide/


~/myproject $ git init
~/myproject $ git add .
~/myproject $ git commit -m "first commit"
~/myproject $ cd ~/Dropbox/git

~/Dropbox/git $ git init --bare myproject.git
~/Dropbox/git $ cd ~/myproject

~/myproject $ git remote add origin ~/Dropbox/git/myproject.git
~/myproject $ git push -u origin master
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s