Pro Git 2nd Edition 2.1.413Output Undoing Things Unstaging a Staged File Unmodifying a Modified File Undoing things with git restore Working with Remotes Showing Your Remotes Adding Remote Repositories Fetching and Pulling from server, any of the client repositories can be copied back up to the server to restore it. Every clone is really a full backup of all the data. Figure 3. Distributed version control diagram Furthermore branch master Your branch is up-to-date with 'origin/master'. Changes to be committed: (use "git restore --staged..." to unstage) new file: README You can tell that it’s staged because it’s 0 码力 | 731 页 | 21.49 MB | 1 年前3
Pro Git 2nd Edition 2.1.413 Output Undoing Things Unstaging a Staged File Unmodifying a Modified File Undoing things with git restore Working with Remotes Showing Your Remotes Adding Remote Repositories Fetching and Pulling from server, any of the client repositories can be copied back up to the server to restore it. Every clone is really a full backup of all the data. Figure 3. Distributed version control diagram Furthermore branch master Your branch is up-to-date with 'origin/master'. Changes to be committed: (use "git restore --staged..." to unstage) new file: README You can tell that it’s staged because it’s 0 码力 | 691 页 | 13.35 MB | 1 年前3
Pro Git 2nd Edition 2.1.413server, any of the client repositories can be copied back up to the server to restore it. Every clone is really a full backup of all the data. 12 Figure 3. Distributed version control diagram Furthermore master Your branch is up-to-date with 'origin/master'. Changes to be committed: 29 (use "git restore --staged..." to unstage) new file: README You can tell that it’s staged because it’s git restore Git version 2.23.0 introduced a new command: git restore. It’s basically an alternative to git reset which we just covered. From Git version 2.23.0 onwards, Git will use git restore instead 0 码力 | 501 页 | 17.96 MB | 1 年前3
Gitea v1.21.1 中文文档· BookStack.CN 构建 如果你正在运行Gogs 0.9.146以下版本,你可以平滑的升级到Gitea。该升级需要如下的步骤: 使用 gogs backup 创建 Gogs 备份。这会创建一个名为 gogs-backup-[时间戳].zip 的文件,其中包含所有重 要的 Gogs 数据。如果您将来想要返回到 gogs ,您会需要这个备份文件。 从 下载页面 下载适用于目标平台的文件。应该选择 issues, labels, releases, release_assets, milestones, pull_requests, comments。如果为 空,则表示所有项目。 restore-repo 从磁盘目录中还原存储库数据: 选项: --repo_dir dir , -r dir :还原数据的存储库目录路径。 --owner_name lunny :还原目标所有者名称。 可用于所有仓库,但你也可以将其限制为特定的仓库或所有者。 要注册全局 Runner: 1. gitea actions generate-runner-token dump-repo restore-repo actions generate-runner-token Gitea 命令行 - 69 - 本文档使用 书栈网 · BookStack.CN 构建 要注册特定组织的 Runner,例如0 码力 | 303 页 | 3.88 MB | 1 年前3
git 操作手册"/git-data" } }) #设置备份存放路径及备份默认保存时间,默认 /var/opt/gitlab/backups/ gitlab_rails['backup_path'] = "/git-backup" gitlab_rails['backup_keep_�me'] = 604800 #设置时区 gitlab_rails['�me_zone'] = "Asia/Shanghai" #设置监听的端口号(h�ps的端口号) nginx['ssl_cer�ficate_key'] = "/etc/gitlab/gitlab.cof-lee.com.key" EOF # mkdir /git-data # mkdir /git-backup #将证书及密钥文件复制到/etc/gitlab目录下 # gitlab-ctl reconfigure #重加载配置文件(耗时较长,约5到10分钟)0 码力 | 35 页 | 1.69 MB | 1 年前3
Pro Git 中文版 第2版 2.1.66branch master Your branch is up-to-date with 'origin/master'. Changes to be committed: (use "git restore --staged..." to unstage) new file: README 只要在 Changes to be committed 这行下面的,就说明是已暂存状态。 run "git am --resolved". If you would prefer to skip this patch, instead run "git am --skip". To restore the original branch and stop patching run "git am --abort". 该命令将会在所有出现问题的文件内加入冲突标记,就和发生冲突的合并或变基操作一样。 "WIP on master: 049d078 added the index file" HEAD is now at 049d078 added the index file (To restore them type "git stash apply") 可以看到工作目录是干净的了: $ git status # On branch master nothing to commit, 0 码力 | 501 页 | 19.30 MB | 1 年前3
Pro Git 中文版 第2版 2.1.66branch master Your branch is up-to-date with 'origin/master'. Changes to be committed: (use "git restore --staged..." to unstage) new file: README 只要在 Changes to be committed 这行下面的,就说明是已暂存状态。 run "git am --resolved". If you would prefer to skip this patch, instead run "git am --skip". To restore the original branch and stop patching run "git am --abort". 该命令将会在所有出现问题的文件内加入冲突标记,就和发生冲突的合并或变 "WIP on master: 049d078 added the index file" HEAD is now at 049d078 added the index file (To restore them type "git stash apply") 可以看到工作目录是干净的了: $ git status # On branch master nothing to commit, 0 码力 | 670 页 | 13.59 MB | 1 年前3
共 7 条
- 1













