我从master
中抽出一个新的分支栏目,以便为我的备份创造新的特征,但我这样做时打破了另一个特征。
我不想删除<条码>my_branch上的改动,但希望回头看一下破损的原始状况。 然后,我要再次回到我的肩上。
我应如何这样做?
Thank you.
我从master
中抽出一个新的分支栏目,以便为我的备份创造新的特征,但我这样做时打破了另一个特征。
我不想删除<条码>my_branch上的改动,但希望回头看一下破损的原始状况。 然后,我要再次回到我的肩上。
我应如何这样做?
Thank you.
1) You can git stash
and go back to master see and come back and git stash pop
2) You can do git show master:path/to/file
and see the file / directory ( this if you want to see the contents )
3) 你们总是能够作出承诺、改变分支和退缩,以及<编码>git reset HEAD~。
First make sure you don t have any outstanding changes in my_branch
by using either git commit
or git stash
.
然后使用<代码>git 支票out Master,转而查看master/code>中的你的代码状况。
当你做时,请使用<代码>git 核对我_branch 回到贵处。
如果你在第一步中阻碍您的工作变化,你现在可以使用<条码> st/条码>重新应用。
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 ...