Stay Hungry. Stay Foolish.

environment

other need to install

  • npm install --save bootstrap@3

Git Command

limted use, may lose everything on local using git reset --hard HEAD [Carefully]
git reset --hard HEAD
git pull
[Revise, Editing]
git add .
git commit -m 'messages'
git push origin master

Git Essentials

Please Commit As Much As Possible, All Your Current Process.
here are basic git commands, we all use master for eazy manipulations:

  1. On Mac, open terminal. If block, try sudo or sudo su
    On PC, please download Git Bash for Windows https://gitforwindows.org/
  2. git clone https://github.com/ChloeZPan/Learning.git
  3. git status
    IF it shows: "nothing to commit", THEN go to Step 6; ELSE continue Step 4.
  4. git add . OR git add <file name>
  5. git commit -m 'any message you want, but meaningful
  6. git pull
    IF it shows: "CONFLICT (content): Merge conflict in" or "Automatic merge failed; fix conflicts and then commit the result.", THEN please fix those conflict in IDE, then back to Step 4, loop till the user change from (master|MERGING) to (master)
  7. git push origin master