file-type

Git教程资源大全:从入门到进阶

ZIP文件

下载需积分: 1 | 306B | 更新于2024-09-29 | 143 浏览量 | 0 下载量 举报 收藏
download 立即下载
### 一、Git简介 Git是一个开源的分布式版本控制系统,由Linus Torvalds(Linux之父)主导开发,旨在快速高效地处理从小型到大型项目的所有类型。与传统的集中式版本控制系统(如SVN)不同,Git允许每个开发者都有一份完整项目历史的拷贝,这意味着即使远程服务器出现问题,开发者依然可以使用本地版本继续工作。此外,Git在处理分支方面表现出色,使得多人协作开发变得更加灵活。 ### 二、Git基础概念 1. **仓库(Repository)**:存放代码的地方。 2. **提交(Commit)**:对更改的记录,相当于快照。 3. **分支(Branch)**:允许开发者在不同的版本线路上工作,互不干扰。 4. **合并(Merge)**:将不同分支的更改整合到一起。 5. **克隆(Clone)**:复制一个Git仓库到本地。 6. **拉取(Pull)**:从远程仓库获取最新的更改。 7. **推送(Push)**:将本地的更改上传到远程仓库。 ### 三、Git常用命令 - **git init**:初始化一个Git仓库。 - **git status**:查看文件状态。 - **git add**:添加文件到暂存区。 - **git commit**:提交更改到本地仓库。 - **git branch**:列出、创建或删除分支。 - **git checkout**:切换分支或恢复工作区文件。 - **git merge**:合并分支。 - **git pull**:从远程获取最新版本并合并到本地。 - **git push**:将本地更改推送到远程仓库。 - **git diff**:查看未暂存更改。 - **git log**:查看提交历史。 - **git reset**:重置当前HEAD到指定状态。 ### 四、Git工作流程 Git的工作流程通常包括以下步骤: 1. **克隆仓库**:git clone <url>,克隆远程仓库到本地。 2. **创建分支**:git branch <branch_name>,为新功能或修复创建分支。 3. **切换分支**:git checkout <branch_name>,切换到目标分支工作。 4. **进行更改**:在分支上添加、修改或删除文件。 5. **暂存更改**:git add <file>,将更改添加到暂存区。 6. **提交更改**:git commit -m "Commit message",提交暂存区的更改到本地仓库。 7. **推送更改**:git push origin <branch_name>,将本地更改推送到远程分支。 8. **同步远程更改**:git pull origin <branch_name>,在推送前拉取最新的远程更改并合并。 9. **合并分支**:在主分支上合并分支的更改,如果冲突需要手动解决。 10. **推送主分支更改**:git push origin <main_branch>,将合并后的更改推送到远程主分支。 ### 五、Git分支模型 在Git中,一个典型的分支模型是Git Flow模型,它包括以下分支: - **主分支(Master/ Main)**:存放生产就绪代码,标签用于生产发布。 - **开发分支(Develop)**:日常开发,分支自主分支。 - **特性分支(Feature)**:从开发分支创建,用于开发新特性,完成后合并回开发分支。 - **发布分支(Release)**:从开发分支创建,用于准备工作发布,最后合并到主分支和开发分支。 - **热修复分支(Hotfix)**:从主分支创建,用于紧急修复,完成后合并到主分支和开发分支。 ### 六、Git图形界面工具 虽然命令行界面(CLI)提供了强大的操作能力,但对于不习惯命令行操作的用户,可以使用图形界面工具来简化操作流程。一些常见的Git图形界面工具有: - **GitKraken** - **Sourcetree** - **GitHub Desktop** - **Git Extensions** ### 七、Git高级特性 1. **Rebase**:将一系列提交重新应用到另一分支顶部,使项目历史更清晰。 2. **Stash**:临时保存未提交的更改,以便切换分支工作。 3. **Cherry-Pick**:选择性地应用某个分支的提交到当前分支。 4. **Submodules**:管理包含在其他仓库中的Git仓库。 5. **Hooks**:在执行Git命令前或后执行自定义脚本。 ### 八、Git与GitHub GitHub是一个基于Git的代码托管和协作平台,提供免费和付费的代码仓库托管。它不仅仅是一个托管代码的地方,还提供了一个让全球开发者协作、分享和交流的社区。除了GitHub,还有许多其他平台也提供Git仓库托管服务,如GitLab、Bitbucket等。 ### 九、Git常见问题与解决方法 1. **文件冲突**:当多人同时修改同一文件时会发生冲突,Git无法自动解决时需要手动解决。 2. **撤销更改**:可以使用git checkout或git reset命令撤销更改。 3. **丢失提交**:如果提交丢失,可以使用git reflog查看丢失的提交记录。 4. **分支问题**:常见问题包括合并冲突、分支同步问题等,需要了解Git分支模型以及相关命令来解决。 ### 十、资源文件 文件列表中包含两个文件: - **file01.txt**:可能包含Git教程的某些文本内容,如Git命令介绍、操作指南等。 - **readme.txt**:通常包含项目的自述文件,用于说明项目的安装、运行方式以及相关的文档链接。 通过这些资源文件,用户可以深入了解Git的基础使用方法,进阶特性和常见问题的处理,从而提升在项目版本控制方面的效率和协作能力。

相关推荐

filetype

-- Detecting CXX compile features -- Detecting CXX compile features - done -- git rev-parse returned 'fatal: not a git repository (or any of the parent directories): .git' -- Could not use 'git describe' to determine PROJECT_VER. -- Building ESP-IDF components for target esp32s3 NOTICE: Dependencies lock doesn't exist, solving dependencies. NOTICE: Using component placed at C:\TPC\IOT\IoT_Pad_MIC_Test\12-speech_recognition\components\esp-libhelix-mp3 for dependency "chmorgan/esp-libhelix-mp3"(introduced by component "chmorgan/esp-audio-player") NOTICE: Using component placed at C:\TPC\IOT\IoT_Pad_MIC_Test\12-speech_recognition\components\espressif__esp-dsp for dependency "espressif/esp-dsp"(introduced by component "espressif/esp-sr") NOTICE: Using component placed at C:\TPC\IOT\IoT_Pad_MIC_Test\12-speech_recognition\components\espressif__esp_lcd_touch for dependency "espressif/esp_lcd_touch"(introduced by component "espressif/esp_lcd_touch_ft5x06") NOTICE: Using component placed at C:\TPC\IOT\IoT_Pad_MIC_Test\12-speech_recognition\components\esp-libhelix-mp3 for dependency "chmorgan/esp-libhelix-mp3"(introduced by component "chmorgan/esp-audio-player") NOTICE: Using component placed at C:\TPC\IOT\IoT_Pad_MIC_Test\12-speech_recognition\components\espressif__esp-dsp for dependency "espressif/esp-dsp"(introduced by component "espressif/esp-sr") NOTICE: Using component placed at C:\TPC\IOT\IoT_Pad_MIC_Test\12-speech_recognition\components\espressif__esp_lcd_touch for dependency "espressif/esp_lcd_touch"(introduced by component "espressif/esp_lcd_touch_ft5x06") NOTICE: Using component placed at C:\TPC\IOT\IoT_Pad_MIC_Test\12-speech_recognition\components\chmorgan__esp-audio-player for dependency "chmorgan/esp-audio-player", specified in C:\TPC\IOT\IoT_Pad_MIC_Test\12-speech_recognition\main\idf_component.yml NOTICE: Using component placed at C:\TPC\IOT\IoT_Pad_MIC_Test\12-speech_recognition\components\chmorgan__esp-file-iterator for dependency "chmorgan/esp-file-iterator", specified in C:\TPC\IOT\IoT_Pad_MIC_Test\12-speech_recognition\main\idf_component.yml NOTICE: Using component placed at C:\TPC\IOT\IoT_Pad_MIC_Test\12-speech_recognition\components\espressif__esp-sr for dependency "espressif/esp-sr", specified in C:\TPC\IOT\IoT_Pad_MIC_Test\12-speech_recognition\main\idf_component.yml NOTICE: Using component placed at C:\TPC\IOT\IoT_Pad_MIC_Test\12-speech_recognition\components\espressif__esp_codec_dev for dependency "espressif/esp_codec_dev", specified in C:\TPC\IOT\IoT_Pad_MIC_Test\12-speech_recognition\main\idf_component.yml NOTICE: Using component placed at C:\TPC\IOT\IoT_Pad_MIC_Test\12-speech_recognition\components\espressif__esp_lcd_touch_ft5x06 for dependency "espressif/esp_lcd_touch_ft5x06", specified in C:\TPC\IOT\IoT_Pad_MIC_Test\12-speech_recognition\main\idf_component.yml NOTICE: Using component placed at C:\TPC\IOT\IoT_Pad_MIC_Test\12-speech_recognition\components\espressif__esp_lvgl_port for dependency "espressif/esp_lvgl_port", specified in C:\TPC\IOT\IoT_Pad_MIC_Test\12-speech_recognition\main\idf_component.yml NOTICE: Using component placed at C:\TPC\IOT\IoT_Pad_MIC_Test\12-speech_recognition\components\lvgl__lvgl for dependency "lvgl/lvgl", specified in C:\TPC\IOT\IoT_Pad_MIC_Test\12-speech_recognition\main\idf_component.yml

filetype

fuyu1@ubuntu:~/git-2.7.4$ sudo apt install build-essential libssl-dev libcurl4-gnutls-dev libexpat1-dev gettext 正在读取软件包列表... 完成 正在分析软件包的依赖关系树 正在读取状态信息... 完成 gettext 已经是最新的版本。 libssl-dev 已经是最新的版本。 下列软件包是自动安装的并且现在不需要了: git-man liberror-perl Use 'apt-get autoremove' to remove them. 将会安装下列额外的软件包: dpkg-dev fakeroot libalgorithm-diff-perl libalgorithm-diff-xs-perl libalgorithm-merge-perl libdpkg-perl libfakeroot libfile-fcntllock-perl 建议安装: debian-keyring libcurl4-doc libcurl3-dbg 下列软件包将被【卸载】: libcurl4-openssl-dev 下列【新】软件包将被安装: build-essential dpkg-dev fakeroot libalgorithm-diff-perl libalgorithm-diff-xs-perl libalgorithm-merge-perl libcurl4-gnutls-dev libdpkg-perl libexpat1-dev libfakeroot libfile-fcntllock-perl 升级了 0 个软件包,新安装了 11 个软件包,要卸载 1 个软件包,有 4 个软件包未被升级。 需要下载 1,434 kB 的归档。 解压缩后会消耗 4,975 kB 的额外空间。 您希望继续执行吗? [Y/n] y 获取:1 http://rdsource.tp-link.com/ubuntu/ trusty-updates/main libdpkg-perl all 1.17.5ubuntu5.8 [179 kB] 获取:2 http://rdsource.tp-link.com/ubuntu/ trusty-updates/main dpkg-dev all 1.17.5ubuntu5.8 [726 kB] 获取:3 http://rdsource.tp-link.com/ubuntu/ trusty/main build-essential amd64 11.6ubuntu6 [4,838 B] 获取:4 http://rdsource.tp-link.com/ubuntu/ trusty/main libfakeroot amd64 1.20-3ubuntu2 [25.4 kB] 获取:5 http://rdsource.tp-link.com/ubuntu/ trusty/main fakeroot amd64 1.20-3ubuntu2 [55.0 kB] 获取:6 http://rdsource.tp-link.com/ubuntu/ trusty/main libalgorithm-diff-perl all 1.19.02-3 [50.0 kB] 获取:7 http://rdsource.tp-link.com/ubuntu/ trusty/main libalgorithm-diff-xs-perl amd64 0.04-2build4 [12.6 kB] 获取:8 http://rdsource.tp-link.com/ubuntu/ trusty/main libalgorithm-merge-perl all 0.08-2 [12.7 kB] 获取:9 http://rdsource.tp-link.com/ubuntu/ trusty-updates/main libcurl4-gnutls-dev amd64 7.35.0-1ubuntu2.20 [237 kB] 获取:10 http://rdsource.tp-link.com/ubuntu/ trusty-updates/main libexpat1-dev amd64 2.1.0-4ubuntu1.4 [115 kB] 获取:11 http://rdsource.tp-link.com/ubuntu/ trusty/main libfile-fcntllock-perl amd64 0.14-2build1 [15.9 kB] 已下载 1,434 kB,耗时 2秒 (507 kB/s) (正在读取数据库 ... 系统当前共安装有 106043 个文件和目录。) 正在卸载 libcurl4-openssl-dev:amd64 (7.35.0-1ubuntu2.20) ... 正在处理用于 man-db (2.6.7.1-1ubuntu1) 的触发器 ... 正在选中未选择的软件包 libdpkg-perl。 (正在读取数据库 ... 系统当前共安装有 106022 个文件和目录。) 正准备解包 .../libdpkg-perl_1.17.5ubuntu5.8_all.deb ... 正在解包 libdpkg-perl (1.17.5ubuntu5.8) ... 正在选中未选择的软件包 dpkg-dev。 正准备解包 .../dpkg-dev_1.17.5ubuntu5.8_all.deb ... 正在解包 dpkg-dev (1.17.5ubuntu5.8) ... 正在选中未选择的软件包 build-essential。 正准备解包 .../build-essential_11.6ubuntu6_amd64.deb ... 正在解包 build-essential (11.6ubuntu6) ... 正在选中未选择的软件包 libfakeroot:amd64。 正准备解包 .../libfakeroot_1.20-3ubuntu2_amd64.deb ... 正在解包 libfakeroot:amd64 (1.20-3ubuntu2) ... 正在选中未选择的软件包 fakeroot。 正准备解包 .../fakeroot_1.20-3ubuntu2_amd64.deb ... 正在解包 fakeroot (1.20-3ubuntu2) ... 正在选中未选择的软件包 libalgorithm-diff-perl。 正准备解包 .../libalgorithm-diff-perl_1.19.02-3_all.deb ... 正在解包 libalgorithm-diff-perl (1.19.02-3) ... 正在选中未选择的软件包 libalgorithm-diff-xs-perl。 正准备解包 .../libalgorithm-diff-xs-perl_0.04-2build4_amd64.deb ... 正在解包 libalgorithm-diff-xs-perl (0.04-2build4) ... 正在选中未选择的软件包 libalgorithm-merge-perl。 正准备解包 .../libalgorithm-merge-perl_0.08-2_all.deb ... 正在解包 libalgorithm-merge-perl (0.08-2) ... 正在选中未选择的软件包 libcurl4-gnutls-dev:amd64。 正准备解包 .../libcurl4-gnutls-dev_7.35.0-1ubuntu2.20_amd64.deb ... 正在解包 libcurl4-gnutls-dev:amd64 (7.35.0-1ubuntu2.20) ... 正在选中未选择的软件包 libexpat1-dev:amd64。 正准备解包 .../libexpat1-dev_2.1.0-4ubuntu1.4_amd64.deb ... 正在解包 libexpat1-dev:amd64 (2.1.0-4ubuntu1.4) ... 正在选中未选择的软件包 libfile-fcntllock-perl。 正准备解包 .../libfile-fcntllock-perl_0.14-2build1_amd64.deb ... 正在解包 libfile-fcntllock-perl (0.14-2build1) ... 正在处理用于 man-db (2.6.7.1-1ubuntu1) 的触发器 ... 正在设置 libdpkg-perl (1.17.5ubuntu5.8) ... 正在设置 dpkg-dev (1.17.5ubuntu5.8) ... 正在设置 build-essential (11.6ubuntu6) ... 正在设置 libfakeroot:amd64 (1.20-3ubuntu2) ... 正在设置 fakeroot (1.20-3ubuntu2) ... update-alternatives: using /usr/bin/fakeroot-sysv to provide /usr/bin/fakeroot (fakeroot) in 自动模式 正在设置 libalgorithm-diff-perl (1.19.02-3) ... 正在设置 libalgorithm-diff-xs-perl (0.04-2build4) ... 正在设置 libalgorithm-merge-perl (0.08-2) ... 正在设置 libcurl4-gnutls-dev:amd64 (7.35.0-1ubuntu2.20) ... 正在设置 libexpat1-dev:amd64 (2.1.0-4ubuntu1.4) ... 正在设置 libfile-fcntllock-perl (0.14-2build1) ... fuyu1@ubuntu:~/git-2.7.4$ make prefix=/usr/local all SUBDIR git-gui SUBDIR gitk-git SUBDIR perl SUBDIR templates fuyu1@ubuntu:~/git-2.7.4$ sudo make prefix=/usr/local install SUBDIR git-gui SUBDIR gitk-git SUBDIR perl SUBDIR templates install -d -m 755 '/usr/local/bin' install -d -m 755 '/usr/local/libexec/git-core' install git-credential-store git-daemon git-fast-import git-http-backend git-imap-send git-sh-i18n--envsubst git-shell git-show-index git-upload-pack git-remote-testsvn git-http-fetch git-credential-cache git-credential-cache--daemon git-remote-http git-remote-https git-remote-ftp git-remote-ftps git-bisect git-difftool--helper git-filter-branch git-merge-octopus git-merge-one-file git-merge-resolve git-mergetool git-quiltimport git-rebase git-request-pull git-stash git-submodule git-web--browse git-add--interactive git-difftool git-archimport git-cvsexportcommit git-cvsimport git-cvsserver git-relink git-send-email git-svn git-p4 git-instaweb '/usr/local/libexec/git-core' install -m 644 git-mergetool--lib git-parse-remote git-rebase--am git-rebase--interactive git-rebase--merge git-sh-setup git-sh-i18n '/usr/local/libexec/git-core' install git git-upload-pack git-receive-pack git-upload-archive git-shell git-cvsserver '/usr/local/bin' make -C templates DESTDIR='' install make[1]: 正在进入目录 `/home/fuyu1/git-2.7.4/templates' install -d -m 755 '/usr/local/share/git-core/templates' (cd blt && tar cf - .) | \ (cd '/usr/local/share/git-core/templates' && umask 022 && tar xof -) make[1]:正在离开目录 `/home/fuyu1/git-2.7.4/templates' install -d -m 755 '/usr/local/libexec/git-core/mergetools' install -m 644 mergetools/* '/usr/local/libexec/git-core/mergetools' install -d -m 755 '/usr/local/share/locale' (cd po/build/locale && tar cf - .) | \ (cd '/usr/local/share/locale' && umask 022 && tar xof -) make -C perl prefix='/usr/local' DESTDIR='' install make[1]: 正在进入目录 `/home/fuyu1/git-2.7.4/perl' make[2]: 正在进入目录 `/home/fuyu1/git-2.7.4/perl' Appending installation info to /usr/local/lib/perl/5.18.2/perllocal.pod make[2]:正在离开目录 `/home/fuyu1/git-2.7.4/perl' make[1]:正在离开目录 `/home/fuyu1/git-2.7.4/perl' make -C gitweb install make[1]: 正在进入目录 `/home/fuyu1/git-2.7.4/gitweb' make[2]: 正在进入目录 `/home/fuyu1/git-2.7.4' make[2]: “GIT-VERSION-FILE”是最新的。 make[2]:正在离开目录 `/home/fuyu1/git-2.7.4' install -d -m 755 '/usr/local/share/gitweb' install -m 755 gitweb.cgi '/usr/local/share/gitweb' install -d -m 755 '/usr/local/share/gitweb/static' install -m 644 static/gitweb.js static/gitweb.css static/git-logo.png static/git-favicon.png '/usr/local/share/gitweb/static' make[1]:正在离开目录 `/home/fuyu1/git-2.7.4/gitweb' make -C gitk-git install make[1]: 正在进入目录 `/home/fuyu1/git-2.7.4/gitk-git' install -m 755 gitk-wish '/usr/local/bin'/gitk install -d -m 755 '/usr/local/share/gitk/lib/msgs' install -m 644 po/bg.msg '/usr/local/share/gitk/lib/msgs' && install -m 644 po/ca.msg '/usr/local/share/gitk/lib/msgs' && install -m 644 po/de.msg '/usr/local/share/gitk/lib/msgs' && install -m 644 po/es.msg '/usr/local/share/gitk/lib/msgs' && install -m 644 po/fr.msg '/usr/local/share/gitk/lib/msgs' && install -m 644 po/hu.msg '/usr/local/share/gitk/lib/msgs' && install -m 644 po/it.msg '/usr/local/share/gitk/lib/msgs' && install -m 644 po/ja.msg '/usr/local/share/gitk/lib/msgs' && install -m 644 po/pt_br.msg '/usr/local/share/gitk/lib/msgs' && install -m 644 po/ru.msg '/usr/local/share/gitk/lib/msgs' && install -m 644 po/sv.msg '/usr/local/share/gitk/lib/msgs' && install -m 644 po/vi.msg '/usr/local/share/gitk/lib/msgs' && true make[1]:正在离开目录 `/home/fuyu1/git-2.7.4/gitk-git' make -C git-gui gitexecdir='/usr/local/libexec/git-core' install make[1]: 正在进入目录 `/home/fuyu1/git-2.7.4/git-gui' DEST /usr/local/libexec/git-core INSTALL 755 git-gui INSTALL 755 git-gui--askpass LINK git-citool -> git-gui DEST /usr/local/share/git-gui/lib INSTALL 644 tclIndex INSTALL 644 about.tcl INSTALL 644 blame.tcl INSTALL 644 branch_checkout.tcl INSTALL 644 branch_create.tcl INSTALL 644 branch_delete.tcl INSTALL 644 branch_rename.tcl INSTALL 644 branch.tcl INSTALL 644 browser.tcl INSTALL 644 checkout_op.tcl INSTALL 644 choose_font.tcl INSTALL 644 choose_repository.tcl INSTALL 644 choose_rev.tcl INSTALL 644 class.tcl INSTALL 644 commit.tcl INSTALL 644 console.tcl INSTALL 644 database.tcl INSTALL 644 date.tcl INSTALL 644 diff.tcl INSTALL 644 encoding.tcl INSTALL 644 error.tcl INSTALL 644 index.tcl INSTALL 644 line.tcl INSTALL 644 logo.tcl INSTALL 644 merge.tcl INSTALL 644 mergetool.tcl INSTALL 644 option.tcl INSTALL 644 remote_add.tcl INSTALL 644 remote_branch_delete.tcl INSTALL 644 remote.tcl INSTALL 644 search.tcl INSTALL 644 shortcut.tcl INSTALL 644 spellcheck.tcl INSTALL 644 sshkey.tcl INSTALL 644 status_bar.tcl INSTALL 644 themed.tcl INSTALL 644 tools_dlg.tcl INSTALL 644 tools.tcl INSTALL 644 transport.tcl INSTALL 644 win32.tcl INSTALL 644 git-gui.ico INSTALL 644 win32_shortcut.js DEST /usr/local/share/git-gui/lib/msgs INSTALL 644 bg.msg INSTALL 644 de.msg INSTALL 644 el.msg INSTALL 644 fr.msg INSTALL 644 hu.msg INSTALL 644 it.msg INSTALL 644 ja.msg INSTALL 644 nb.msg INSTALL 644 pt_br.msg INSTALL 644 ru.msg INSTALL 644 sv.msg INSTALL 644 vi.msg INSTALL 644 zh_cn.msg make[1]:正在离开目录 `/home/fuyu1/git-2.7.4/git-gui' bindir=$(cd '/usr/local/bin' && pwd) && \ execdir=$(cd '/usr/local/libexec/git-core' && pwd) && \ { test "$bindir/" = "$execdir/" || \ for p in git git-shell git-upload-pack git-cvsserver; do \ rm -f "$execdir/$p" && \ test -z "" && \ ln "$bindir/$p" "$execdir/$p" 2>/dev/null || \ cp "$bindir/$p" "$execdir/$p" || exit; \ done; \ } && \ for p in git-receive-pack git-upload-archive; do \ rm -f "$bindir/$p" && \ test -z "" && \ ln "$bindir/git" "$bindir/$p" 2>/dev/null || \ ln -s "git" "$bindir/$p" 2>/dev/null || \ cp "$bindir/git" "$bindir/$p" || exit; \ done && \ for p in git-add git-am git-annotate git-apply git-archive git-bisect--helper git-blame git-branch git-bundle git-cat-file git-check-attr git-check-ignore git-check-mailmap git-check-ref-format git-checkout-index git-checkout git-clean git-clone git-column git-commit-tree git-commit git-config git-count-objects git-credential git-describe git-diff-files git-diff-index git-diff-tree git-diff git-fast-export git-fetch-pack git-fetch git-fmt-merge-msg git-for-each-ref git-fsck git-gc git-get-tar-commit-id git-grep git-hash-object git-help git-index-pack git-init-db git-interpret-trailers git-log git-ls-files git-ls-remote git-ls-tree git-mailinfo git-mailsplit git-merge git-merge-base git-merge-file git-merge-index git-merge-ours git-merge-recursive git-merge-tree git-mktag git-mktree git-mv git-name-rev git-notes git-pack-objects git-pack-redundant git-pack-refs git-patch-id git-prune-packed git-prune git-pull git-push git-read-tree git-receive-pack git-reflog git-remote git-remote-ext git-remote-fd git-repack git-replace git-rerere git-reset git-rev-list git-rev-parse git-revert git-rm git-send-pack git-shortlog git-show-branch git-show-ref git-stripspace git-submodule--helper git-symbolic-ref git-tag git-unpack-file git-unpack-objects git-update-index git-update-ref git-update-server-info git-upload-archive git-var git-verify-commit git-verify-pack git-verify-tag git-worktree git-write-tree git-cherry git-cherry-pick git-format-patch git-fsck-objects git-init git-merge-subtree git-show git-stage git-status git-whatchanged; do \ rm -f "$execdir/$p" && \ test -z "" && \ ln "$execdir/git" "$execdir/$p" 2>/dev/null || \ ln -s "git" "$execdir/$p" 2>/dev/null || \ cp "$execdir/git" "$execdir/$p" || exit; \ done && \ remote_curl_aliases="git-remote-https git-remote-ftp git-remote-ftps" && \ for p in $remote_curl_aliases; do \ rm -f "$execdir/$p" && \ test -z "" && \ ln "$execdir/git-remote-http" "$execdir/$p" 2>/dev/null || \ ln -s "git-remote-http" "$execdir/$p" 2>/dev/null || \ cp "$execdir/git-remote-http" "$execdir/$p" || exit; \ done && \ ./check_bindir "z$bindir" "z$execdir" "$bindir/git-add" fuyu1@ubuntu:~/git-2.7.4$ git --version -bash: /usr/bin/git: 没有那个文件或目录

xyq2024
  • 粉丝: 4030
上传资源 快速赚钱