一,git config core.autocrlf false

二,vi .git/config
[remote "origin"]
url = https://github.com/iopqrst/learn20140823.git
[remote "origin"]
url = https://iopqrst@github.com/iopqrst/learn20140823.git

三,cat > .gitignore
#Floder#
bin/
node_modules/
logs/*
==========================
*.a # 忽略所有 .a 结尾的文件
!lib.a # 但 lib.a 除外
/TODO # 仅仅忽略项目根目录下的 TODO 文件,不包括 subdir/TODO
build/ # 忽略 build/ 目录下的所有文件
doc/*.txt # 会忽略 doc/notes.txt 但不包括 doc/server/arch.txt
四, git push https://jianyeruan@bitbucket.org/jianyeruan/kd.git +741c3a6^:master
五,.gitignore只能忽略那些原来没有被track的文件,如果某些文件已经被纳入了版本管理中,则修改.gitignore是无效的。那么解决方法就是先把本地缓存删除(改变成未track状态),然后再提交:
git rm -r --cached .
git add .
六,
git status
git add .
git commit -m 'test'
git commit --amend
git reflog 本地 q退出
git log --oneline 远程
git fetch --all
git pull
git reset --hard xxx
git branch -a //切换分支
git checkout -b dev //创建进入dev
git branch -m devel develop //分支改名
git merge hotfix //把hotfix 合到当前分支
git branch -d hotfix //删除分支
git pull -p //将其从本地版本库中去除
git rm --cached readme.txt 只从stage中删除,保留物理文件
git rm readme.txt 不但从stage中删除,同时删除物理文件
git mv a.txt b.txt 把a.txt改名为b.txt
git push || git push -f[少用为好把本地版本同步到remove]

git push origin dev
git push https://xxxxxxxxxxxxxx

最新文章

  1. jquery阻止冒泡事件行为发生
  2. PackageManager源码分析
  3. 【转】js判断手机访问网页
  4. 13.首先,编写一个类ChongZai,该类中有3个重载的方法void print();其次, 再编写一个主类来测试ChongZai类的功能。
  5. DataView
  6. LR11.0 下载及破解
  7. FJNU 1152 Fat Brother And Integer(胖哥与整数)
  8. LevelDB源码之五Current文件\Manifest文件\版本信息
  9. 08_Spring实现action调用service,service调用dao的过程
  10. C++ Combobox输入时自动完成
  11. Linux进程间通信——使用命名管道
  12. 方形图片转动并转换成圆形CSS特效
  13. 【filezilla】 ubuntu下安装filezilla
  14. JavaScript join() 方法
  15. Linux下MySQL安装和配置
  16. SQLAlchemy 教程 —— 基础入门篇
  17. 如何编写51单片机超声波测距SR04_lcd1602显示程序
  18. SQL FIRST() 函数
  19. linux杂记
  20. 使用python画一只佩奇

热门文章

  1. onSaveInstanceState的执行时机
  2. Asp.NET利用ClientScript.RegisterStartupScript("")的同学,请注意!
  3. 【Extjs】large按钮,图片全部覆盖按钮
  4. js中call、apply、bind的用法
  5. 嵌入式Linux学习笔记(0)基础命令。——Arvin
  6. js 截取字符串,取指定位置的字符(完善中)
  7. openssl evp 对称加密(AES_ecb,ccb)
  8. 分布式事务二阶提交DTS系统
  9. Python之路 day3 全局变量、局部变量
  10. angular遇到问题