@julia_allyce
JavaScript Developer @ Bitovi
Consulting and OSS
thas my dog Gertrude 💁
uhhh...thanks a lot wikipedia
my-app
$ mkdir my-first-repo
$ cd my-first-repo/
$ git init
Initialized empty Git repository
in /Users/julia/my-first-repo/.git/my-app
my-app
my-app
Oct 20, 2015 @ 10:32AM
Oct 20, 2015 @ 03:15PM
Oct 21, 2015 @ 02:44AM
"Initial Commit"
"Added New Images"
"New ReadMe.md"
$ touch readme.md
$ git status
$ git add .
$ git commit -m "Initial Commit"
[master (root-commit) 70fe53c] Initial Commit
1 file changed, 0 insertions(+), 0 deletions(-)
create mode 100644 readme.mdMaster
Development
New Feature
$ git checkout -b develop
Switched to a new branch 'develop'
$ touch .gitignore
$ git add .
$ git commit -m "Added gitignore file"
[develop 75403b0] Added gitignore file
1 file changed, 0 insertions(+), 0 deletions(-)
create mode 100644 .gitignore$ git log
commit 75403b0f43f42ca984a157877728e9b16a295fac
Author: Julia Poladsky <sdfsdfsdf@sdfsdf.com>
Date: Tue Oct 20 18:14:27 2015 -0400
Added gitignore file
commit 70fe53ca158a26cb404ebcafdb763f9938b87eb0
Author: Julia Poladsky <sdfsdfsdf@asdsdf.com>
Date: Tue Oct 20 18:05:51 2015 -0400
Initial Commit
$ git checkout master
$ git log
commit 70fe53ca158a26cb404ebcafdb763f9938b87eb0
Author: Julia Poladsky <sdfsdfsdf@asdfsdfs.com>
Date: Tue Oct 20 18:05:51 2015 -0400
Initial Commit$ git branch
develop
* masterMaster
Development
New Feature
$ git merge develop
Updating 70fe53c..75403b0
Fast-forward
.gitignore | 0
1 file changed, 0 insertions(+), 0 deletions(-)
create mode 100644 .gitignore
$ git log
commit 75403b0f43f42ca984a157877728e9b16a295fac
Author: Julia Poladsky <sdfsdfsdf@sdfsdf.com>
Date: Tue Oct 20 18:14:27 2015 -0400
Added gitignore file
commit 70fe53ca158a26cb404ebcafdb763f9938b87eb0
Author: Julia Poladsky <sdfsdfsdf@asdsdf.com>
Date: Tue Oct 20 18:05:51 2015 -0400
Initial Commit
Click the create button down here... oops
$ git remote add origin YOUR-REPO-URL
$ git push -u origin master
Counting objects: 5, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (3/3), done.
Writing objects: 100% (5/5), 448 bytes | 0 bytes/s, done.
Total 5 (delta 0), reused 0 (delta 0)
To git@github.com:julia-allyce/my-first-repo.git
* [new branch] master -> master
Branch master set up to track remote branch master from origin.Woot. We Did that!
$ git push
// Pushes your current branch
// to your default remote
$ git push REMOTE_NAME BRANCH_NAMEhttps://git-scm.com/docs/git-push
😌
$ git pull
// Pulls commits for current branch
// from your default remote
$ git push REMOTE_NAME BRANCH_NAMEhttps://git-scm.com/docs/git-pull