Fork for Mac (Git client) Tutorial

Fork Git client is absolutely the best full-featured functionality and interactivity, not only free but also very many useful features, overall ease of use has reached a high level, very suitable for program developers to use, small series brings Fork for Mac (Git client) using the tutorial, I hope for your help.
Fork for Mac (Git clients) use the tutorial below:
View Commit a project where all the files
after a Commit is selected, you can view the current detailed Commit the same time, see the other versions of the same file at the bottom of the software Commit area. For example, you want to see Update client ui this time to submit records, public / index.html is what.
All the contents of a file to view the version history, or to change the details of a file
by clicking File Tree button, select a file, right-you can see the history Show FIle History, it is also very convenient to view files.
If the command line, you can correspond to the following command:
# file log the commit
git log - filename
# file detailed changes
git log -p - filename
# Use gitk View
gitk filename
as fine lines and Unstage Stage on the right mouse move modification area, there will be Stage and Discard Changes button.
Click Stage marquee will be two lines of code into Staged Files, that is placed git staging area. If you click Discard Changes, deletes two rows in front of the modifications, the final surface of the red modification will not be affected.
If you hold down the option key, you will put all the changes are put into temporary storage area.
Stash in view of changes in position and Commit the figure, which then can be displayed on top of a branch in git stash in the master branch above. And you can view the contents of Stash.
Quick merge conflicts if merge conflicts occur, you can directly select which file to use, and you can use an external tool Visual Studio Code to deal with, is also very convenient.
If the command line, corresponding to the following command:
# the Keep Remote Files
git-Merge --strategy the Option theirs
# the Keep local Files
git-Merge --strategy the Option Ours

# the Keep at The Remote File
git Checkout --theirs / path / to / File
# File the Keep local
git Checkout --ours / path / to / File
automatically fetch and focus on a few branches
in the processing branches above, it will automatically make local repository git fetch up to date, but also can display only a few branches, Learn more concise change a branch.
Keyboard Shortcuts
Open the quick selection branch: ⇧ ⌘ + O +
Stash file Review: ⇧ ⌘ + S +
Discard Stashes file Review: ⇧ + ⌘ + D

Guess you like

Origin blog.csdn.net/ankychan/article/details/93331021