Until a few weeks ago I had never used git before in my life, or any version of source control for that matter. I started an internship and am now using it a great deal. I want to begin using it on my own, but there are a few things I am not sure about because where I'm interning already had everything set up. What I want to be able to do is setup a git repository on dropbox for a project that me and another are doing. My questions are below the code, code based off of this post
~/project $ git init
~/project $ git add .
~/project $ git commit -m "first commit"
~/project $ cd ~/Dropbox/git
~/Dropbox/git $ mkdir project.git
~/Dropbox/git $ cd project.git
~/Dropbox/git $ git init --bare
~/Dropbox/git $ cd ~/project
~/project $ git remote add origin ~/Dropbox/git/project.git
~/project $ git push origin master
Q1. Is ~/project just going to be our eclipse android project folder?
Q2. How do we go about creating branches? Add a branch for each class we make then checkout that branch and use git add className.java?
Then commit, merge with master, and push to orgin?
Q3. How do we clone from dropbox?
Sorry that some of these are very noobish. I'm just a rookie to the whole idea of source control!