(master) $ ls --- Demo02.txt git与github.md test2.txt test4.txt GitDemo.txt test.txt test3.txt ZHD@LAPTOP-PQIEGIQ8 MINGW64 /d/GitRepository (master) $ git remote -v // 此时可以发现,这边的地址别名只是本仓库的别名。之前的GitRepositoryAddress并不会在这里面 --- origin https://githu...
现在的情景是,你已经在本地创建了一个Git仓库后,又想在GitHub创建一个Git仓库,并且让这两个仓库进行远程同步,这样,GitHub上的仓库既可以作为备份,又可以让其他人通过该仓库来协作,真是一举多得。 首先,登陆GitHub,然后,在右上角找到“New repository”按钮,创建一个新的仓库,只需要填写Repository name,其他默认即...
lib.txt#lib.txt除外/temp#仅忽略项目根目录下的temp文件,不包括其它目录下的temp,如不包括“src/temp”build/#忽略build/目录下的所有文件doc/*.txt#会忽略 doc/notes.txt 但不包括 doc/server/arch.txt 各种语言项目的常用.gitignore文件配置:https://github.com/github/gitignore...
Manipulate the notes tree in<ref>. This overridesGIT_NOTES_REFand thecore.notesRefconfiguration. The ref specifies the full refname when it begins withrefs/notes/; when it begins withnotes/,refs/and otherwiserefs/notes/is prefixed to form a full name of the ref. ...
https://github.com/github/gitignore2.6 git diff --staged(查看已暂存和未暂存的修改)如果git status 命令的输出对于你来说过于简略,而你想知道具体修改了什么地方,可以用 git diff 命令 假如再次修改 test.txt 文件后暂存,然后编辑 love.txt 文件后先不暂存, 运行 status 命令将会看 到:...
用户名邮箱作用 : 我们需要设置一个用户名 和 邮箱, 这是用来上传本地仓库到GitHub中, 在GitHub中显示代码上传者; 使用命令 : git config --global user.name "HanShuliang" //设置用户名 git config --global user.email "13241153187@163.com" //设置邮箱 ...
MySQLNotes :MySQL 学习笔记,主要笔记见 JavaNotes ->MySQL Books:《MySQL 必知必会》学习笔记 NS3 NS3 网络仿真器(使用 python/C++)课程作业 Python 📂 PythonNotes:python 使用笔记 Books:《跟老齐学 python 轻松入门》笔记 Tools:open_file_folder: EclipseWithIDEA GitWithGitHub Markdown Maven SublimeTe...
git_notes lauhoob第二次提交 Oct 5, 2021 readme.md 第四次提交六号 Oct 5, 2021 Repository files navigation README Git和GitHub详解 (一)Git基础 Git 下载和安装 下载地址: https://git-scm.com/downloads 使用默认值安装 资源管理器内单击鼠标右键选择 Git Bash Here 输入git --version 检查是否安装成...
//2、解决合并冲突问题,利用mergetool,具体配置请看:https://panmenglin.github.io/satellite-log/notes/tools/tools-merge-tool.html git mergetool //如果使用的是vimdiff,可以看这篇文章:https://kinboyw.github.io/2018/10/09/Use-Vimdiff-As-Git-Mergetool/ ...
GitHub 有三种方式下载代码: HTTPS:使用登录 github 的用户名和密码,即可clone 项目。 SSH:通过上传 SSH key 到 GitHub 后台,这样无需密码即可 clone 项目。 GitHub CLI:平台提供管理仓库的终端工具,还可以使用 Github 提供的一些额外功能。 2、免密下载代码 配置ssh key,可以免密下载Github代码,既方便又安全,需要...