-
Notifications
You must be signed in to change notification settings - Fork 0
git命令
wnh5 edited this page Oct 21, 2017
·
5 revisions
从git服务器上获取所有分支元数据到本地
从git服务器上获取分支代码
当前分支代码拉取到本地
停止自动换行替换(linux下\n,windows下\r\n),避免在不同环境下因为换行符的不同而提交代码
代码恢复到上次提交时的状态
#.idea文件夹,-r 表示删除cache文件夹
git rm -r --cache .idea
git commit -m '(gitignore commit and remove .idea)'