大约有 2,878 项符合查询结果(耗时:0.0369秒) [XML]
What is a tracking branch?
Can someone explain a "tracking branch" as it applies to git?
4 Answers
4
...
git log of a single revision
... commit c + metainformation and no other one. Is there a simpler way than git log -p c^..c to do that?
4 Answers
...
Why is git prompting me for a post-pull merge commit message?
Recently, following any git pull , git has started spawning my text editor, and asking for a merge commit message. A commit message is already pre-filled, and I just have to save and close the window to complete the pull.
...
Git - deleted some files locally, how do I get them from a remote repository
...
Since git is a distributed VCS, your local repository contains all of the information. No downloading is necessary; you just need to extract the content you want from the repo at your fingertips.
If you haven't committed the delet...
Resolve conflicts using remote changes when pulling from Git remote
I'm trying to pull code from my GitHub repo onto my server, but the pull keeps failing because of merge conflicts. I don't want to keep any of the changes that may have occurred on my local server since the last pull.
...
Git, How to reset origin/master to a commit?
...to do to update the remote is to force push your local changes to master:
git checkout master
git reset --hard e3f1e37
git push --force origin master
# Then to prove it (it won't print any diff)
git diff master..origin/master
...
In Git, how do I figure out what my current revision is?
... It is quite common to tag a commit with a version number and then use
$ git describe --tags
to identify the current HEAD w.r.t. any tags. If you mean you want to know the hash of the current HEAD, you probably want:
$ git rev-parse HEAD
or for the short revision hash:
$ git rev-parse --sho...
How do I undo a checkout in git?
I just checked out an earlier commit from my local git repo. I haven't made any changes to it, I was just looking at it. Now I want to go back to my latest commit - how do I do that?
...
Creating folders inside a GitHub repository without using Git
I want to add a new folder to my newly created GitHub repository without installing the Git setup for (Mac, Linux, and Windows). Is it possible to do so?
...
Git: How to reuse/retain commit messages after 'git reset'?
As Git user I regular come across the situation, that I need to rework one or more commits in a way which do not fit into --amend or rebase -i with fixup commits. Typically I would do something like
...