starting with Git - adrobnych/androidbrew_training GitHub Wiki

Step 1. download RailsInstaller http://railsinstaller.org/

this is bundle with Unix-like shell, git and several useful commands.

from this point all commands to be faired using this shell.

Step 2. Configure your git a little:

$ git config --global user.name "Your Name" $ git config --global user.email [email protected]

Step 3. cd to your directory with SImple Calc

Step 4. create local git repo

$ git init

Step 5. first commit to local repo

add files to git index $ git add .

then first commit: $ git commit -m “my first commit”

Step 6. register account on GitHub

Step 7. create new repo https://help.github.com/articles/creating-a-new-repository

Step 8. Copy your public ssh key to clipboard:

$ publickey Your public ssh key has been copied to your clipboard.

Step 9. bind your public ssh key with Github account

https://help.github.com/articles/generating-ssh-keys immediately go to “Step 4: Add your SSH key to GitHub” and paste key from clipboard

Step 10. bind local git repo with remote repo created by you on github

$ git remote add origin [email protected]:/first_app.git

$ git push origin master

After this step all further pushes to remote repo can be done with simple set of commands:

$ git add .

$ git commit -m “commit reason”

$ git push

Also, your remote repo is open source and you can drop me a url for review.

Other docs and links: Git installation: http://git-scm.com/book/ru/ch1-4.html Git/github integration on russian (for Rails project but can be applied for any project of course): http://russian.railstutorial.org/chapters/beginning#sec:version_control

Enjoy.

⚠️ **GitHub.com Fallback** ⚠️