大约有 2,878 项符合查询结果(耗时:0.0263秒) [XML]
How to get rid of Git submodules untracked status?
I can't seem to get rid of untracked content in Git's submodules. Running git status yields:
10 Answers
...
How do you roll back (reset) a Git repository to a particular commit? [duplicate]
I cloned a Git repository and then tried to roll it back to a particular commit early on in the development process. Everything that was added to the repository after that point is unimportant to me so I want to omit all subsequent changes from my local source code.
...
Git submodule head 'reference is not a tree' error
...submodule to use, cd to the submodule, check out the commit you want, then git add and git commit it back in the super-project.
Example:
$ git submodule update
fatal: reference is not a tree: e47c0a16d5909d8cb3db47c81896b8b885ae1556
Unable to checkout 'e47c0a16d5909d8cb3db47c81896b8b885ae1556' in ...
Moving from CVS to Git: $Id$ equivalent?
...ugh a bunch of questions asking about simple source code control tools and Git seemed like a reasonable choice. I have it up and running, and it works well so far. One aspect that I like about CVS is the automatic incrementation of a version number.
...
Is it possible to push a git stash to a remote repository?
In git, is it possible to create a stash, push the stash to a remote repository, retrieve the stash on another computer, and apply the stash?
...
Exclude a directory from git diff
I'm wondering how I can exclude an entire directory from my Git diff. (In this case /spec). I'm creating a diff for our entire software release using the git diff command. However the changes to the specs are irrelevant for this procedure, and just create headaches. now I know i can do
...
How do I find the next commit in git? (child/children of ref)
...g from the current one, and then its child, and so on - basically standard git log, but going the other way in time, use something like
git log --reverse --ancestry-path 894e8b4e93d8f3^..master
where 894e8b4e93d8f3 is the first commit you want to show.
...
How to push to a non-bare Git repository?
I usually work on a remote server via ssh (screen and vim), where I have a Git repository. Sometimes I'm not online, so I have a separate repository (cloned from my remote) on my laptop.
...
How can I calculate the number of lines changed between two commits in git?
...y easy way to calculate the number of lines changed between two commits in git?
11 Answers
...
Remove files from Git commit
I am using Git and I have committed few files using
29 Answers
29
...