This week I learned what version control is,how to use git, how to build website and project management.
version control is important.If I use it,Ican
Git is standard version control tool.
First,I use source tree.It visualize branches.
I used Mac OS Sierra.Open terminal and check there are any ssh key in my computer.
"$ ls ~/.ssh"
there were no ssh key.Then generate ssh key.
$ ssh-keygen -t rsa -C "my email adress"
Copy this key
$ pbcopy < ~/.ssh/id_rsa.pub
Resister this key to Git Lab.my page>profile setting>ssh key(left pain)
Install from here.
Follow the wizard.reference
new repository > clone from URL. copy my labo's ssh url from git lab page and push "clone"button.
take in changes made by other people.push "pull" buttom and check then push "adopt" button.
When Ichange files I record the change.it is commit.push "commit"button and write summery of changes.
When my commit grow enough to publish ( to members or web),then push. push "push" button and select which branch I merge that commits.
I used gitbash. OS is windows10. I setted ssh key the same way as above.
$ git clone firstname.lastname@example.org:fabacademy2017/fablabkitakagaya.git
$ git add week02.html $ git commit -m 'Add week02.html'
Then I got a error message below.
*** Please tell me who you are. Run git config --global user.email "email@example.com" git config --global user.name "Your Name" to set your account's default identity. Omit --global to set the identity only in this repository. fatal: empty ident name (for <(null)>) not allowed
So I ran this command.
$ git config --global user.email "firstname.lastname@example.org" $ git config --global user.name "murasaki"
And check config.
$ git config --list
Then my config was changed.Tried commit again.
$ git commit -m 'add week02.html'
Then succeed! I got a message below.
[master 51072ad] add week02.html 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 students/210/week02.html
$ git push
Counting objects: 4, done. Delta compression using up to 4 threads. Compressing objects: 100% (4/4), done. Writing objects: 100% (4/4), 407 bytes | 0 bytes/s, done. Total 4 (delta 2), reused 0 (delta 0) To git.fabacademy.org:fabacademy2017/fablabkitakagaya.git d8833fd..51072ad master -> master
$ git pull
Succeed.then I got amessage below.
Left pain is useful project folder tree.And html highlight set right below.Atom can use many useful packages.I install "atom-html-preview"
Bootstrap3 is css framework.Download and set folders in my web site's directory.then it works!reference is here