大约有 2,879 项符合查询结果(耗时:0.0123秒) [XML]
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?
...
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...
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
...
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?
...
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
...
Git: How to diff two different files in different branches?
...
git diff branch1:full/path/to/foo.txt branch2:full/path/to/foo-another.txt
You can also use relative paths:
git diff branch1:./relative/path/to/foo.txt branch2:./relative/path/to/foo-another.txt
...
Git workflow and rebase vs merge questions
I've been using Git now for a couple of months on a project with one other developer. I have several years of experience with SVN , so I guess I bring a lot of baggage to the relationship.
...
How do I run git log to see changes only for a specific branch?
I have a local branch tracking the remote/master branch. After running git-pull and git-log , the log will show all commits in the remote tracking branch as well as the current branch. However, because there were so many changes made to the remote branch, I need to see just the commits made to th...
How do I ignore all files in a folder with a Git repository in Sourcetree?
I have a Bitbucket Git repository managed with Sourcetree.
10 Answers
10
...
How to make git-diff and git log ignore new and deleted files?
...ed files together with some new, deleted and/or renamed files. When doing git diff or git-log I'd like to omit them, so I can better spot the modifications.
...
