* The following is the operation of the local warehouse"Submit files to the local warehouse"git add filename adds file to staging areagit status to see if any files have not been submittedgit commit-m "submitted notes" to submit files to the warehousegit diff file name View the modified part of the file------------------------------------------------------------------------------------------------"Version fallback"
CD catalog, enter directorymkdir catalog, creating catalogsVI I, go to editESC, exiting EditHow git diff exits: qPress the ESC key to jump to command mode, and then:: w save file but do not exit VI: W file saves the modification to file and does not exit VI: w! Forced to save, do not launch VI: Wq save file and Exit VI: wq! Force the file to be saved and exit VIQ: Do not save file, Exit VI: q! Do not save file, Force exit VI: e! Discard all changes an
compressed document, unzip it into the/tmp directory, enter the/tmp/software directory, and then execute the following three commands:1./configure 2 make 3 sudo make installegInstall dependent packages0. sudo apt-get install build-essential1. UnzipTAR-ZXF nagios-4.0.2.tar.gz2. Enter the catalogueCD nagios-4.0.23. Configuration./configure--prefix=/usr/local/nagios4. CompilingMake all5. InstallationMake install make Install-init make Install-commandm
Submission ProcessView file changes and new filesgit statusAdd new Filegit add your_file_path // Add all Files git add */ / Add some type of fileSubmit File" Commit Message "Submit all your modified files and add files' your message 'Undo Modify a fileGit checkout--Discard all local modifications--hard Origin/masterUpdate RelatedUpdate Remote CodeGit pullShow merge conflict filesGit diffView a merge conflict fileGit diff--base Add post-conflict
1. Open the folder in your project and enter the following commandGit initAfter you lose the command above, a. Git folder appears in the folder, as shown in the other files will also appear blue small question mark2. Add all Filesgit Add.Note that the last point is useful.After the input is complete, the folder looks like this3. Submit all DocumentsGit commit-m "Here is the note information"-AWhen you are finished, the folder appears as followsThere w
PushPush changes to remote. (If the remote doesn ' t has the branch, the branch would be created)git push Renaming a branch (a complete version of Push command)This can deletes a remote branch by providing empty local branch name.git push References:https://help.github.com/articles/pushing-to-a-remote/Http://stackoverflow.com/questions/2765421/push-a-new-local-branch-to-a-remote-git-repository-and-track-it-
For example, if your colleague adds branch xxx to GIT's remote branch, but you find that you are viewing the presence of branch in Android studio, and you don't see his added branch, if you look at branch, poke this: How Android Studio View Branch list and toggle Branch ,Here's another way to get to the command line:git branch-a or git branch-rIf you can see the new branch, there are two ways to do it:Way o
Through this collection of GIT Project branch information examples, to illustrate the Python and terminal information interaction, and the simple processing of strings.The code is as follows:?
1234567891011121314151617
import osimport subprocessdef get_branches(project_dir):try:os.chdir(project_dir) #转到工程路径下except Exception,error:print errorbranches_str = subprocess.check_output(["git",
4. Basic Redis commands-list, basic redis-list1. The list type is implemented using a double linked list. Therefore, if you want to add elements to both ends, the time complexity is O (1 ), the faster the element gets closer to the two ends. However, the cost is that accessing elements through indexes is slow.2. the ma
Git commit commits a modificationGit branch branchname Create a new branch of BranchnameGit merge branchname merge the current branch with the Branchname branchGit rebase branchname to set the parent node of the current branch to BranchnameGit reset head~1 used locally, roll back to the previous node in HEADgit revert HEAD in the need to commit the remote revocation, undo the current changes, will create a new nodegit tag v0 C1 set a v0 tag for C1git
, respectively, from the left pop-up, from the right pop-up, the return value is a pop-up value. (pop-up means to remove the value and return the value)
127.0.0.1:6379> lrange mylist 0-1
1) "-2"
2) "-1"
3 "" 0 "
4)" 1 "
127.0.0.1:6379> Lpop MyList
"-2"
127.0.0.1:6379> rpop mylist
"1"
127.0.0.1:6379> lrange mylist
-0-1 1) "-1"
2) "0"
Combined with the above four commands, you can implement stacks and queues.
Stacks: lpush and lpop or usin
1. show command:Display RMAN configuration: RMAN> show all;
2. Report command:2.1. RMAN> report schema the physical structure of the target database;2.2. RMAN> report need backup days = 3; report data files not backed up in the last three days;2.3. RMAN> report need backup days 3 tablespace users; data files not backed up in the users tablespace for three days;2.4. RMAN> report need backup incremental 3. report the number of incremental backups required for data file recovery more than three ti
; Rpop Key
Here is a good understanding, respectively, from the left pop-up, from the right pop-up, the return value is a pop-up value. (pop-up means to remove the value and return the value)
Combined with the above four commands, you can implement stacks and queues.
Stacks: Lpush and Lpop or using Rpush and Rpop.
Queues: Lpush and Rpop or using Rpush and Lpop.
3, get the number of elements in the list
Document directory
Common commands
Less common commands
Abor
Acct *
Allo
Appe
Cdup
CWD
Dele
Help
List
MDTM
MKD
Mode
NLST
Noop
Pass
PASV
Port
PWD
Quit
Rein *
Rest
RETR
RMD
RNFR
RNTO
Site *
Size
Stat
Stor
STOU
Stru
Syst
Type
User
Note that commands marked with a * are not implement
/gravity /center ">Found two commands together, namely student and where are connected together. So when you use the a command to add a command to the buffer to hit two return, the first carriage return is a command must take the carriage return, the second carriage return is added as the beginning of the new code to the buffer, for example:Q: Suppose the buffer has 3 rows of SQL commands, you need to join
In Win7, you cannot view the file list using the dir or ls commands of ftp. In this case, you cannot view the file list using the dir or ls commands of ftp in command line mode of Win7, you cannot view the file list using the dir or ls c
), and then
C-c C-c is M-x comment-region
The cancellation is like this:
M-x recomment-region
Added on 08.05.14
Emacs Bookmark-related commands
Ctrl x R m: creating bookmarks
CTRL x R L: Open Bookmark list
CTRL x R B: Jump to the location specified by the bookmark
M-x bookmark-write: Write a bookmark to a specific file
M-x bookmark-load: Loading bookmarks from specified file
-----------
What is lisp and
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.