prisskreative
1/27/2015 - 2:30 AM

Git class universidad de miami

Git class universidad de miami

github


pwd - where on the computer

---

Git version and location

git --version

which git

---

Identify yourself when working with a team

Configure git

git config --global user.email "you@yourdomain.com"
git config --global user.name "Your Name"

Check the config

git config --list

---

Configure your credential

git credential-osxkeychain

---

New reposition

priskreative.github.io  - static website (no php)

clone git on terminal

git clone https://github.com/prisskreative/priskreative.github.io.git

check on directory

ls -l

---

got to that directory

cd priskreative.github.io/

check folder ( .git index.html)

ls -la

---

we are on the master branch of our repo

git status 

---

Add all files

git add .


add one file

git add index.html


then status again to check 

git status

tu delete

git reset HEAD index.html

---

Very import "what we doing"

git commit -m ""


---

git push -u origin master

enter your github.com username and password


---

check what was change

git diff index.html

git commit -m "describe de new change"

---

changes

git status

git commit -m "add h2"

git add index.html

git push

---

revert and reset changes

git log --patch



---

git push -u origin master