我有一个称为试验的分支。
git checkout master
echo some changes > a.txt
# now master branch has local changes which are not committed
git checkout experiment
有时 我已注意到,如果我有地方变化,我就不允许我转向另一个分支。 有时,如果我有地方变化,允许我转到另一个部门。
我失踪了什么?
我有一个称为试验的分支。
git checkout master
echo some changes > a.txt
# now master branch has local changes which are not committed
git checkout experiment
有时 我已注意到,如果我有地方变化,我就不允许我转向另一个分支。 有时,如果我有地方变化,允许我转到另一个部门。
我失踪了什么?
摘录:
当更换分行时,如果你对目前分行和即将开关的分行之间不同的一个或多个档案进行当地修改,则该指挥部拒绝开关,以保持你对情况的修改。
因此,如果这些修改与各部门之间的差别没有任何关系(如你的例子),就会让你们转手。 如果各分支机构之间的争iff使你拥有的同一档案发生改变,则会拒绝——但你可以具体说明<条码>-
要使这一描述更加完整:只有A、B和C卷才能证明主与实验之间的鸿沟。 如果在你的工作树中你修改了A,你将无法检查另一个分支。 但是,如果你修改D,你可以检查罚款。
我不敢肯定这怎么做,但它试图防止你意外地过度做不相称的改动。 如果安理会决定你会发生冲突,我就认为......。
Im having some confusion with my git usage. I cloned a repo from one comp to the other, and the new clone is the state of the original that was active some time ago. So its cloning a past version. ...
I was wondering if the strategy I m using for tagging and hotfixing tags (which then I use for deploying rails applications) with git is appropriate. For tagging I just tag a commit of the master ...
I have a svn repo with various apps as subdirectory of a single svn repo. That worked because I could have checked out a partial, repo. As I cant do that with git obviously I need multiple repos. I ...
I understand how to merge branches together in git, and I love how easy it makes it. I have a branch that looks like this: project/ |--subproj1/ | |---(files) | |--subproj2/ |---(files) A ...
We still use CVS, I use git and hg for my personal use though I m still a novice at both, but I realize they re much more modern and better, faster, distributed, etc. It s just everyone is so ...
I get this on every git svn command I try. I am using git version 1.6.4.2 on OS 10.6 The initial git svn fetch works, and i can do further fetches after that, but they do not enter the log or update ...
Given I have a master branch and a other branch. In the other branch are files I don t want to commit (e.g. log files) so I ignored them in .gitignore. When I switch to the master branch, these ...
Using Git at home has spoiled me - I now find using TFS at work to be a bit of a drag and want to explore the possibility of using Git locally and syncing somehow with TFS. I figure there are a few ...