Recap of Git and GitHub Version Control Tutorial – Part 2

Git and GitHub Version Control Tutorial – Part 2

part2-1

Note:

Recap of Part 1

part2-2

GitHub

Signup account, taijimark1, chenxxx(hotmail.com)

Using GitHub with Git Bash

Create SSH key using RSA public/private cryptography

ssh-keygen -t rsa -C “chenpingling@hotmail”

ssh-keygen-t-rsa

it will create .ssh folder under /home/ with 2 files (private and public key)

copy public key and paste it to github

get-public-key
add-ssh-key
ssh-keys-on-taijimark1x2

testing ssh to github

ssh -T git@github.com

testing-ssh

SSH to GitHub, HTTPS can do as alternative

to finish local part first

go to NetBeans’s project folder

git init

git add .

git commit -m “#1

to GitHub using SSH

ssh-to-github

git remote add origin git@github.com:taijimark1/youtube.demo.git, *** add one time will do

git push origin master, *** simple “git push” won’t work

verify update on github

verify-github

***BE AWARE ***

right click to save jar is not advised

tricky-jar

by my experience, this kind of save as, jar size has changed, can not java -jar successfully
download project as zip or just git/svn entire project, original jar is good to run directly

When comes more development

for example to add css

add-css

git status, to know status

git-status

add all, commit and push origin master again!

git-add-all-and-commit
git-push-origin-masterx2

check github to know 2 commits

add-css-shows

as mentioned to download as ZIP

Download-ZIP

Unzip, go to that folder and java -jar, it works perfectly!

a-good-jar

on Ubuntu, we may right click jar file to choose open with OpenJDK Java 7 Runtime, file must be Execute checked

permissions-execute