FrontPage

よく使われているコマンド: [edit]

チェックアウト [edit]

git clone git://github.com/jquery/jquery.git

clone 中断调用 fetch 可断点续传(需要进入项目文件夹后,执行此命令)

git fetch  --recurse-submodules

本地代码未修改,只有master分支,直接更新 [edit]

git pull

查看版本 [edit]

git describe --tags --dirty

查看项目地址 [edit]

git remote -v

下载工程里的一些子工程 [edit]

下载后,再cd到目录中执行下面的命令

git submodule update --init -f

末尾的 -f 表示强制执行

Troubleshooting [edit]

error: unable to create file xxxxx.xx : Filename too long [edit]

git config core.longpaths true
git config --system core.longpaths true #需要管理员权限

设置core.longpaths这个配置项为true。

原因:

This error does not come for the UNIX or mac users. So they can push the long length file names to git but the issues occur only for the windows users. Because this capability is disabled by default in the Windows operating system.

使用下面的命令,可以看到返回 false 或者是 空 (看起来貌似没有反应)

git config --get core.longpaths

error: The following untracked working tree files would be overwritten by checkout [edit]

git clean -d -fx

Cloning into 'D:/chip/third_party/editline'... fatal: unable to access 'https://github.com/editline.git/': OpenSSL SSL_read: Connection was reset, errno 10054 [edit]

网络差导致的此类问题

cd 到 git clone的主目录下,执行下述命令即可。

git submodule update --init --recursive

Tips [edit]


コメント:



(画像の文字列を入力して下さい)

トップ   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS