在学习linux内核。有好的资料可以介绍给我。
git 使用
上一篇 /
下一篇 2011-10-12 08:49:53
/ 个人分类:早上9点前
初始化 git库
git init
git add .
git commit -a -m "comment message"
.gitignore文件配置
*.o
*.so
*.a
*.exe
*~
git checkout -- a.c #checkout a.c 库上版本
git status #查看本地修改文件
git clean -f -d #删除本地没有跟踪的文件
git reset --hard #还会当前目录
git branch #查看分析
创建本地分支:$ git branch [name] ----注意新分支创建后不会自动切换为当前分支
git checkout branch_a #切换分支
git branch branch_a -D #删除分支
检出仓库:$ git clone git://github.com/jquery/jquery.git
查看远程仓库:$ git remote -v
添加远程仓库:$ git remote add [name] [url]
删除远程仓库:$ git remote rm [name]
拉取远程仓库:$ git pull [remoteName] [localBranchName]
推送远程仓库:$ git push [remoteName] [localBranchName
收藏
举报
TAG: