远程仓库github
简介
Git 是一个版本控制(管理仓库)工具
主要在命令行上使用。本地机器上Local Repository。
Git 是一个分布式版本控制系统,这意味着不存在一个主信息仓库。每位开发者使用的都是仓库的一个副本。
GitHub 是一个托管 Git 项目(托管仓库)的服务
Hosting version control repositories,在浏览器中与其进行交互。远程仓库Remote Repository。
远程仓库与你的本地 Git 仓库一样,只是它位于其他地方,例如朋友的电脑、Github。
访问远程仓库的方式有多个:
-使用 URL(位于 Web 上)
-使用系统文件的路径
合并到 master 分支之前,在项目中获取他们在各自的分支上所做的更改。要先测试一下他们的更改,再实施自己的更改。
使用远程仓库:
https://git-scm.com/book/en/v2/Git-Basics-Working-with-Remotes#_showing_your_remotes
不使用 README 初始化
取消勾选"Initialize this repository with the README"(使用 README 初始化此仓库)。提供要在终端运行的相关配置命令
…or create a new repository on the command line 在命令行上创建新存储库
echo “# my-travel-plan” >> README.md
git init
git add README.md
git commit -m “first commit”
git remote add origin https://github.com/xr*