有没有办法让git状态显示2个遥控器?
基本上我将原点设置为github项目的Fork和Fork的父项目的上游.在我的Fork的github页面上,它列出了这样的东西
这个分支是1提前提交,9提交在othergithubuser:master之后
从本质上讲,我正在寻找git状态(或某种方式)来复制它
的.git /配置
[core]
repositoryformatversion = 0
filemode = true
bare = false
logallrefupdates = true
[remote "origin"]
url = https://github.com/mygithubuser/project.git
fetch = +refs/heads/*:refs/remotes/origin/*
[branch "master"]
remote = origin
merge = refs/heads/master
[remote "upstream"]
url = https://github.com/othergithubuser/project.git
fetch = +refs/heads/*:refs/remotes/upstream/*
Run Code Online (Sandbox Code Playgroud)
在终端中输入git help status并查看命令说明,你会发现目前还不能这样做
显示索引文件和当前 HEAD 提交之间存在差异的路径、工作树和索引文件之间存在差异的路径以及工作树中未被 Git 跟踪(并且不会被 gitignore(5) 忽略的路径) )。第一个是通过运行 git commit 提交的内容;第二个和第三个是您可以通过在运行 git commit 之前运行 git add 来提交的内容。
| 归档时间: |
|
| 查看次数: |
92 次 |
| 最近记录: |