Git

Git入门资料:

http://marklodato.github.io/visual-git-guide/index-zh-cn.html

http://www.bootcss.com/p/git-guide/

http://www.cnblogs.com/wang_yb/p/3867221.html

http://www.liaoxuefeng.com/wiki/0013739516305929606dd18361248578c67b8067c8c017b000/   (git教程)

 

 

 

git merge origin/master

git fetch

git reset --hard HEAD^1

gitk --all &

gitk --all

git diff

 

git 提交多个远程分支:http://blog.csdn.net/isea533/article/details/41382699

git remote add <name> <remote地址>
git remote set-url --add <name>  <remote地址>

提交时输入: git push <name> --all    提到所有的远端仓
  或者:  git push <name> master          

 

git push origin master 的意思: push 到 远端(origin对应的远端仓库url) 的 master 分支上

.git/conig配置文件:

[core]
    repositoryformatversion = 0
    filemode = false
    bare = false
    logallrefupdates = true
    symlinks = false
    ignorecase = true
[remote "origin"]
    url = git@git.oschina.net:kkk001/tiny-apps.git
    fetch = +refs/heads/*:refs/remotes/origin/*
[branch "master"]
    remote = origin
    merge = refs/heads/master

 

posted on 2015-05-22 00:12  快鸟  阅读(221)  评论(0编辑  收藏  举报