大约有 4,000 项符合查询结果(耗时:0.0277秒) [XML]
Cleaning up old remote git branches
I work from two different computers (A and B) and store a common git remote in the dropbox directory.
9 Answers
...
Count the number of commits on a Git branch
I found this answer already: Number of commits on branch in git
but that assumes that the branch was created from master.
...
How to list all Git tags?
...
git tag
should be enough. See git tag man page
You also have:
git tag -l <pattern>
List tags with names that match the given pattern (or all if no pattern is given).
Typing "git tag" without arguments, a...
Checking for a dirty index or untracked files with Git
How can I check if I have any uncommitted changes in my git repository:
14 Answers
14
...
Check if pull needed in Git
...
First use git remote update, to bring your remote refs up to date. Then you can do one of several things, such as:
git status -uno will tell you whether the branch you are tracking is ahead, behind or has diverged. If it says nothing...
Could I change my name and surname in all previous commits?
...
Use git-filter-branch.
git filter-branch --commit-filter 'if [ "$GIT_AUTHOR_NAME" = "Josh Lee" ];
then export GIT_AUTHOR_NAME="Hobo Bob"; export GIT_AUTHOR_EMAIL=hobo@example.com;
fi; git commit-tree "$@"'
This only affect...
How to use Git?
...
Have a look at git for designers for great one page article/high level intro to the topic. (That link is broken: Here is a link to another Git for Designers )
I would start at http://git-scm.com/documentation, there are documents and grea...
How do I update my bare repo?
...plicate all the objects from the main repo, do this inside the main repo:
git push --all <url-of-bare-repo>
Alternatively, do a fetch inside the bare repo:
git fetch <url-of-main-repo>
You cannot do a pull, because a pull wants to merge with HEAD, which a bare repo does not have.
...
What's the difference between Git Revert, Checkout and Reset?
...nd projects to a prior state, and don't understand the difference between git revert , checkout , and reset . Why are there 3 different commands for seemingly the same purpose, and when should someone choose one over the other?
...
Delete local Git branches after deleting them on the remote repo
...
The quick way
git branch --merged | grep -v "\*" | xargs -n 1 git branch -d
NB: if you're not on master, this has the potential to delete the branch. Keep reading for the "better way".
Make sure we keep master
You can ensure that maste...