Git operations
This is the very first article of my blog about coding. It's mainly for the learning purpose of Ruby on Rails, git and github, Python and others. I found that coding is fun, but there are many little tricks needed to be remembered. Therefore, a blog is quite suitable for this kind of thing.
Anyway, a little notes about git is as follows:
git init
# initialize a git repository
git add <filename> # add a file
( git add . ) # add everything in this directory
git commit -m "Initial Commit!"
# commit the change
git status
# show status
git rm filename
# remove file
git remote add origin https://github.com/username/repo's_name.git
# add a remote repository at Github
git push -u origin master
# push file to remote site # origin : remote site
# master: local site
SSH login:
ssh -T git@github.com
# login using SSH key