Introducing
Your new presentation assistant.
Refine, enhance, and tailor your content, source relevant images, and edit visuals quicker than ever before.
Trending searches
1) git log
2) git log --graph
3) git log --pretty=format:"%h - %an, %ar : %s"
Indentity:
git config --global user.name "XXX"
git config --global user.email "..@.."
Editor:
git config --global core.editor vi(vim,emacs,nano)
Other setting(ignorable):
git config --global color.diff auto
git config --global color.status auto
git config --global color.branch auto
git config --global color.log auto
1)git config --list
2)git config <key> (key: user.name,user.email......)
3)vi .gitconfig
1) mkdir <file_name>
2) cd <file_name>
3) git init
4) git status
1) git branch
2) git branch <new branch name>
3) git checkout <branch name>
Get and update code:
git fetch
git pull [shortname]
git push [shortname]
Merge code:
git checkout [main branch]
git merge [the branch you wanna merge]
CVCS => DVCS
Add remote server:
git remote add [shortname] [url]
git remote
git remote -v
Clone Project:
git clone https://github.com/libgit2/libgit2
git branch clar2
Several students in a group(on any OS):
1)Set branches and make your "First Commit" to Bitbucket
including: README.txt, one random file.
(This is original project.)
2)Everyone forks the project to your own Bitbucket.
3)Everyone clone the project from your own Bitbucket.
4)Add one file on your own branch. Push to your own Bitbucket.
5)Send pull request to original project.
1) http://git-scm.com/
--Official Site of Git
2) http://git-scm.com/book/zh-tw/v1
--Chinese textbook of Git(version1)
3) https://bitbucket.org/
--Bitbucket (as Remote Server)
4) https://koding.com/
--Koding, a real Ubuntu OS