Notes from May 21st Refresh Wichita Falls meeting. Added with notes from my experiences.
----
To create a new repository and push it to a remote server.
----
Have directory with your files in it. Inside that directory in a command shell.
git init
git add . (all files) git add <path>
git commit -m 'First Commit'
git remote add github git@github.com:llynix/Git-Notes.git
git push github master
----
To Clone an existing repository
----
git clone git://github.com/llynix/Git-Notes.git
----
Status
----
git status
git status -s (short)
----
other Notes
----
git checkout -b newbranch
git checkout master
* switches branches, -b creates new branch
git commit -am "your note here"
git branch
* shows branch
git merge newbranch
git mergetool
* hooks into your mergetool search
git branch -d example
* delete branch
git remote (list remotes)
reveal.js (Neat slideshow HTML 5)
-------------
# clone a repository on a new machine and then push changes back up to github
git commit -am 'Added style to work with responsive design'
git remote add github git@github.com:llynix/Simple-Google-Maps-Shortcode.git
cd ~/.ssh
ssh-keygen -t rsa
# put id_rsa.pub on github
git push github master