# smbclient-u Mtk-l 192.168.64.64
-U followed by the name of the server, that is MTK
After-l is the IP of the server, that is, the 192.168.64.64
Enter Public ' s password: ---------If there is a password this requires a password (password for the server)
Anonymous Login Successful
domain=[workgroup] Os=[unix] Server=[samba 3.0.37a-iovst]
sharename Type Comment
--------- ---- -------
ipc$ IPC IPC Service (netdisk)
TimeMachine Disk TimeMachine
Share Disk Share
home Disk Home
Anonymous Login Successful
Domain=[workgroup] Os=[unix] Server=[samba 3.0.37a-iovst]
Server Comment
--------- -------
langlang-hp
N12mini netdisk
win-pc
wym-book
Workgroup Master
--------- -------
WORKGROUP Wym-book
Mount the things on the server to the local
# Mount-o USERNAME=MTK//192.168.64.64/home/media/
This will allow you to access the
This way git uses the same as local use
# git Clone/media/git-work/mtk-code.git
How Git is used
1, modify user name and email address
#git config--global user.name "hui"
#git config--global user.email xxxxxx@qq.com
1. Modify user name and email address
#git config--global user.name "hui"
#git config--global user.email xxxxxx@qq.com
Delete
#git config--unset--global user.name
#git config--unset--global user.email
2. Set up alias for Git
#git config--system alias.st status git St equivalent git status
#git config--system alias.co checkout git Co is equivalent to git checkout
can also be:
#git config--global alias.st status git St equivalent git status
#git config--global alias.co checkout git Co is equivalent to git checkout
#
3, in the GIT command output to open the color display
#git config--global color.ui true
Git Common Commands
Git--version |
View the version of Git |
Git init |
Create a version library |
git add text |
Adding files to the version library |
git commit-m "initialized" |
Submit to version Library |
Git push Origin Master |
Push the warehouse to the server |
Git pull |
Copy code from the server to the local |
git log |
View submitted cases |
Git diff |
To view the differences between the modified file and the file in the version library |
git grep "Info" |
Search for file contents in the workspace |
git status |
View git status |
Git rev-parse--git-dir |
Displays the version library. Git directory location |
Git rev-parse--show-toplevel |
Show the workspace root directory |
|
|
Git branch |
View Current Branch |
|
|
git reset--hard head^ git reset--soft head^ |
Back to the previous submission of an old |
git reset--hard 9e8a761 |
Return to the specified submission location |
Git reflog show Master git reset--hard 9e8a761 |
Restore the specified version |
|
|
File deletion |
|
git rm file |
deleting files |
git mv oldfile newfle |
Moving files |
git commit--amend-m "content" |
Modify the description of the last submission |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
git patching