<kevinbird61@gmail.com>
http://slides.com/kevinbird61/deck-1
GUI tool for Git.
Editor tool for Git.
Test and deploy collaborated project.
... and so on.
(連結為簡易Github初步使用教學)
> sudo apt-get update
> sudo apt-get install git
> yum install git
Repository
Commit
Branch
> git config --global user.email "your@email.com"
> git config --global user.name "your_git_account"
> git config -l
user.email=your@email.com
user.name=your_git_account
> git clone https://github.com/kevinbird61/tcp-requester.git
Cloning into 'tcp-requester'...
remote: Counting objects: 13, done.
remote: Total 13 (delta 0), reused 0 (delta 0), pack-reused 13
Unpacking objects: 100% (13/13), done.
Checking connectivity... done.
[ Open terminal / git bash ]
> mkdir my_proj && cd my_proj
> git init
Initialized empty Git repository in /home/user/my_proj/.git/
.... (some operation , or ctrl+c+v an existed project in here)
> git add .
> git commit
> git remote add [remote_name/new_remote] [your repo url]
> git push -u [remote_name] [your repo branch]
... (authentication part , and if your network condition is fine, congratulate!)
> git status
On branch master
Initial commit
nothing to commit (create/copy files and use "git add" to track)
Title
Blablabla
# Please enter the commit message for your changes. Lines starting
# with '#' will be ignored, and an empty message aborts the commit.
# On branch master
#
# Initial commit
#
# Changes to be committed:
# new file: test
> git log
commit 1490ef5d2a7e09864278f3a88dc9996f71d8e62b
Author: kevinbird61 <kevinbird61@gmail.com>
Date: Thu Feb 23 01:16:14 2017 +0800
Revise connection channel problem.
- Fix the bugs - "can't make connection again to server by same network
location"
- Using socket.io room instead of namespace.
- Next step: build room monitor.
...
committer
committer's message
> git push -u [remote_name] [branch_name]
> git pull [remote_name] [branch_name]
> git remote -v
origin https://github.com/<your_account>/<your_repo>.git (fetch)
origin https://github.com/<your_account>/<your_repo>.git (push)
kevin@DESKTOP-0RERCE9:[~]$ ls
shell-script-usage test_proj tmp
kevin@DESKTOP-0RERCE9:[~]$ git clone https://github.com/kevinbird61/LifeGamer.git
Cloning into 'LifeGamer'...
remote: Counting objects: 15260, done.
remote: Compressing objects: 100% (30/30), done.
remote: Total 15260 (delta 11), reused 0 (delta 0), pack-reused 15229
Receiving objects: 100% (15260/15260), 34.56 MiB | 1.65 MiB/s, done.
Resolving deltas: 100% (3947/3947), done.
Checking connectivity... done.
kevin@DESKTOP-0RERCE9:[~]$ ls
LifeGamer shell-script-usage test_proj tmp
kevin@DESKTOP-0RERCE9:[~]$ cd LifeGamer/
kevin@DESKTOP-0RERCE9:[~/LifeGamer]$ ls
LICENSE README.md Version 1.0.0 Version 2.0.0
kevin@DESKTOP-0RERCE9:[~/LifeGamer]$ git checkout backend
Branch backend set up to track remote branch backend from origin.
Switched to a new branch 'backend'
kevin@DESKTOP-0RERCE9:[~/LifeGamer]$ ls
backend-gui backend-master backend-slave Feature.md protopype-gui.ep
> git log
....
commit 041ab969cd5c61cddde51f3cf2a87c116b33c34b
Author: kevinbird61 <kevinbird61@gmail.com>
Date: Tue Mar 7 12:51:11 2017 +0800
Modify battle bugs.
Bugs: if target battle room is not existed , the battle command will
crash the render server; so add an checking mechanism to prevent from
it.
....
> git checkout 041ab96