Git Basic Training: Analyst Presentation November 2008
Git Basic Training: Analyst Presentation November 2008
Show log
• show commits of local branch.
Show Reflog
• Show commits of remote branch.
• Git keeps track of updates to the tip of branches using a mechanism
called reflog.
• This allows you to go back to changesets even though they are not
referenced by any branch or tag.
• After rewriting history, the reflog contains information about the old
state of branches and allows you to go back to that state if necessary
.
git reflog
• Show the reflog for the local repository.
• Every time the current HEAD gets updated (by switching branches, pulling
in new changes, rewriting history or simply by adding new commits) a new
entry will be added to the reflog
Browse Reference
• Talks about browse all refs(tag, branch, remote branch, stash and so on)
Daemon
• Sometimes you want to quickly share you local repository to others
without pushing to a remote git repository.
• That's when you need to use TortoiseGit → Daemon...
Revision graph
• Need to know where branches and tags were taken from the point, and
the ideal way to view this sort of information is as a graph or tree
structure
Repo-browser
• See all contents/files of a repository, without having a working tree (e.g. a
bare repository) or you want to see all files of a revision without switching
to it.
Stash Save
• Save your uncommitted data.
Bisect start
• This command uses a binary search algorithm to find which commit in
your project's history introduced a bug.
• You use it by first telling it a "bad" commit that is known to contain the
bug, and a "good" commit that is known to be before the bug was
introduced.
• Then git bisect picks a commit between those two endpoints and asks you
whether the selected commit is "good" or "bad".
• It continues narrowing down the range until it finds the exact commit that
introduced the change.
• In fact, git bisect can be used to find the commit that changed any
property of your project; e.g.,
• the commit that fixed a bug, or the commit that caused a benchmark's
performance to improve.
Resolve
• To resolve conflicts
Create Branch
• Create a new branch
Create Tag
• Create a new tag you can add comments or details about commit
Export
• To export your directory to a new location.
Sync
• Sync Dialog collects all operations related with remote repository to
one dialog.
• Sync Dialog includes push, pull, fetch, remote update, submodule
update, send patch
Add
• To add new files
Submodule Add
• To add new repository
Create Patch Serial
• For open source projects everyone has read access to the (main/public)
repository, and anyone can make a contribution to the project. So how are
those contributions controlled? If just anyone could commit changes this
this central repository, the project would be permanently unstable and
probably permanently broken. In this situation the change is managed by
submitting a patch file or a pull request to the development team, who do
have write access. They can review the changes first, and then either
submit it to the main repository or reject it back to the author.
• Patch files are simply Unified-Diff files showing the differences between
your working tree and the base revision.
• Directory is output directory of patch. Patch file name will be created by
commit subject.
• Since create patch from point. You can click ... to launch refbrowse dialog
to choose branch or tag.
• Number Commits is limited how much patch will created.
• Range is choose range of from commit to to. You can click ... to launch log
dialog to choose commit.
• Send Mail after create launch send mail dialog after patches created (see
the section called “Sending patches by mail”).
Git Commit Options
Compare with working tree
• Show changes from that version of commit to your local repository
Browse repository
• To browse through repository
Merge to "Branch_Name"
• Merge that commit to a branch.
Edit Notes
• Edit existing notes or allows to add new one
Cherry Pick this commit
• Take change of that commit to other branch
Format Patch
• To create a patch from that commit onwards
• git clean -f -X
Use to remove ignored files.
• git clean -f -x
Use to remove ignored files and non-ignored files.