Question: How do I avoid synchronizing a specified folder? --excludersync--exclude files and folders
Http://articles.slicehost.com/2007/10/10/rsync-exclude-files-and-folders
Very common situation: I want to sync//usr/boot/, but do not want to copy/proc/tmp these folders
If you want to avoid a path directly add--exclude
Like--exclude "Proc."
--exclude ' Sources '
Note:the directory path is relative to the folder and you are are backing up.
Note: This path must be a relative path, not an absolute
now I can do the following in several ways:First: If I know what to delete, just manually change the files that need to be removed, then add to staging area, and finally commit.Second: I can revert to the previous version directly in the previous way. Using git reset--hard head^But now I do not want to use the 2 methods above, I would like to directly use the Undo command how to do? First, before we undo, we can look at the current state with Git status. As shown below:As you can see, Git will
I can do the following in several ways:First: If I know what to delete, just manually change the files that need to be removed, then add to staging area, and finally commit.Second: I can revert to the previous version directly in the previous way. Using Git reset–hard head^But now I do not want to use the 2 methods above, I would like to directly use the Undo command how to do? First, before we undo, we can look at the current state with Git status. As shown below:As you can see, Git will tell
5555555555555 was wrong, so I had to get back to the previous version right away, and now I can do the following in several ways:First: If I know what to delete, just manually change the files that need to be removed, then add to staging area, and finally commit.Second: I can revert to the previous version directly in the previous way. Using Git reset–hard head^But now I do not want to use the 2 methods above, I would like to directly use the Undo command how to do? First, before we undo, we ca
let's use the git add command to add 2 files to staging area, and then use GIT status to see the next state, as follows:Then we can use git commit to commit to the branch one at a time, as follows:Four: Git undo Modify and delete file operations.One: Undo changes:For example, I now add a line to the Readme.txt file is 555555555555, we first through the command to see the following:Before I did, I found that adding 5555555555555 was wrong, so I had to get back to the previous version right away,
wrong, so I had to get back to the previous version right away, and now I can do the following in several ways:First: If I know what to delete, just manually change the files that need to be removed, then add to staging area, and finally commit.Second: I can revert to the previous version directly in the previous way. Using git reset--hard head^But now I do not want to use the 2 methods above, I would like to directly use the Undo command how to do? First, before we undo, we can look at the cur
can be written as head~ -of course, you can also write commit_id directly, do not write full. Git automatically retrieves, for example,--Hard B3e4ba--hard effect: from the repository at the same time to cover the suspended area, the work area. If not added only to the suspended area, you need to use checkout from the suspended area to cover the work area9. git revert//undo an operation, the commit will be preserved before and after this operationTen.
git add-u/-a/-p
git pull remote-mirror local-master
Export Commit history (that is, generate patches from an existing code):
Initialize G It repository ... (This step can actually be time consuming, if the code is large)
git tag v1
git commit-a
git format-patch v1. HEAD This requires each commit to be a fix, and in practice may want to merge all submissions into one patch ...
Rewrite commit description: Git commit--amend (p
for US master , so now it's time to git commit commit the changes to the master branch.You can simply understand that the file changes that need to be submitted are all put to staging area, and then all changes to staging area are submitted at once.As the saying goes, practice is the truth. Now, let's practice again and readme.txt make a change, such as adding a line of content:is a distributed version control system.Git is free software distributed under the GPL.Git has a mutable index called
: error_action
Echo only modifications to SVN: log revision properties are allowed.> 2
Goto error_exit: error_exit
Exit/B 1
Use of tortoisesvn Client
1. Checkout RepositoryFirst, you need to check the repository of the server,The so-called checkout is to obtain all the files stored in the repository specified by the server.The checkout and visual source safe
Git cheats: Version rollback in GitGuideIn this article, you will learn how to view the historical version of the project, how to roll back the version, and how to create a Git branch so that you can try it without any problems. Come and try it.
In the history of your Git project, your position is like a clip in the rock album, determined by a HEAD mark (such as the playback HEAD of a tape recorder or recording player ). To move the HEAD before and after your Git time line, you need to use the
content was incorrect, so I had to restore the previous version immediately. Now I can modify the following methods:
First, if I know what I want to delete, I will manually delete those files, add them to the temporary storage area, and then commit them.
Second, I can directly restore to the previous version using the previous method. Use git reset-hard head ^
But now I don't want to use the above two methods. What should I do if I want to use the undo command directly? First, you can check the
current version of the current branch.
2. When you create a new branch, such as the Dev branch (through the command git branch dev), Git creates a new pointer Dev,dev=master,dev point to the version that master points to, and then switches to the Dev branch (by using the command git checkout Dev complete), point the head pointer to Dev, as shown below.
3, in the Dev branch coding development, are in the dev on the pointer movement, for example, in
Thanks to Liaoche, the great God shared git lessons
Master the following commands, basically daily enough local warehouse common operation to create a repository
Git init Add file to buffer
Git add file to warehouse
Git commit-m "Commint describtion" undo Modify or clear buffer
git reset/git reset HEAD file Discard or undo changes
Git checkout--file Delete
git rm fileEquivalent to git rm after git add undo Delete Operation
git resetgit
Label:A summary of the monthly knot1, what is called the month Knot: from the literal meaning, namely for the end of the month checkout.2, the purpose of the monthly knot 1) Accounting instalment 2) Financial report 3, what is called reconciliation: will be two sets of accounts check. In Oracle, the main point is to reconcile the sub-module's account with the general ledger. 4, why to reconcile: General Ledger received financial information and sub-m
checkout the repo just created on the local computer, you only need to enter it in any path.SVN checkout file: // home/Michael/theme Baz # create a working copy named Baz
A working copy is created. For Windows, you must change the path format to file: // X:/path/to/repo. X: The drive letter of the repo.
You can modify it at will in WC. If you are not satisfied, you can use the svn revert command to restore
This article is based on gclient help.
Google's Chromium project uses gclient to manage source code checkout and update. Gclient is a script specially written by Google for such multi-source projects. It can manage the code in multiple source code management systems. It even includes putting git and SVN Code together.
Gclient sync, update, and other commands are easy to learn and use. I will not talk about them any more. The two types of files. gcli
file.The remote git repository obtained through Git clone contains only the current working branch of the remote Git repository. If you want to get other branch information, you need to use "Git branch–r" to see, if you need to get other remote branch code, you can use the command "git checkout-b local branch name Remote branch name",The branch name listed in the remote branch named "Git Branch–r" is typically the same as "origin/branch name". If the
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.