Execute shell commands and shell commands
First, name the shell command as a. sh file.
Save the above Code as test. sh and cd it to the corresponding directory:
Chmod + x./test. sh # grant the script execution permission./test. sh # execute the scriptIf the error/bin/bash
. Use-a to specify the label name and-M to specify the description text: git tag-A v0.1-M "version 0.1 released" 3628164
5 use the PGP signature label: git tag-S
6. Push a local Tag: git push origin
7. Push all unpushed local tags: git push Origin -- tags
8. delete a local Tag: g
current trail list and delete all files
Git RM readme.txt
Only deleted in the temporary storage area. The files are retained in the current directory and will not be tracked.
Git Rm-cached readme.txt
Rename a file
Git MV reademe.txt readme
View submitted history
Git log
Modify the comments submitted last time using th
Use shell commands to analyze statistics logs and shell commands to collect statistics logs
When you need to collect user log information and analyze user behavior, you can use shell to conveniently retrieve a lot of data and place it in excel for statistics.
For example, fo
; "title=" clip_image004 "border=" 0 "alt=" clip_ image004 "src=" http://s3.51cto.com/wyfs02/M01/75/15/wKioL1YyOLeSUc4-AABleG0dA6k987.jpg "height=" "/>"Shell script execution: Simply save the various Linux commands you normally use in order to a text file, and then add executable permissions, this file becomes a shell script! Ps:chmod +x target file650) this.widt
Github website introduction, and use git commands to manage github (detailed description), githubgit
Learn this chapter:
1)Familiar with github website
2)Remotely manage github using git commands,
3)You do not need to enter the account and password to use the ssh key for git
Three basic concepts
The workspace (Workspace) is the root directory of the items in your computer
Registers (Index) like a cache area, temporarily save your changes
The version library (Repository) is divided into local warehouses (locals) and remote warehouses (sqlremote)
Almost all of the commonly used commands are based on these concepts, a picture of victory, the following is a relatively simple diagram, including the most basic command
Common commands: HTTP://HI.BAIDU.COM/SUNBOY_2050/ITEM/FFAB7396672895D11A49DFCCStreamlined Tutorial: http://lugir.com/git-basic.html
Common Git CommandsGit is a very powerful distributed version control system. It is not only suitable for managing the source code of large open source software, but also has many advantages in managing private documents and so
Git is the most commonly used version control tool in our daily routine. Compared to Svn,git has the following advantages: (1) Git is distributed management, does not need a separate server storage code, each machine in the team can be a server, are independent of each other. The biggest advantage is that, in the case of network disconnection,
In general, the daily use of just remember 6 commands, you can. But skilled use, I am afraid to remember 60~100 a command.Here's a list of common Git commands I've compiled. Several special nouns are translated as follows.
Workspace: Work Area
Index/stage: Staging Area
Repository: Warehouse area (or local warehouse)
Remote: Repository
A
Prior to using GIT, SVN version management was used, and the biggest difference with SVN is that git has two warehouses, one is a local repository, one is a shared repository on a server, and a local repository is unique to every developer, even if commit commits to the local repository only. This is just one of the advantages of Git's popularity, and the version management tools developed by Linux authors
As is known to all, Git is now a leader in distributed versioning, creating a complete ecosystem around git. Learning Git is, of course, the basic workflow of learning git. Compared to traditional version control systems like SVN, Git is a powerful tool for distributed versi
good menu option for the most commonly used git features, so you can also learn about the commands and features you use most often in Git's everyday use by using these plugins.Git Usage NoteAssuming you are using a git plugin in the IDE, do not operate in the command line (shell), and there are two processes at the sa
configuration file that holds the password.
There is no need to write from scratch. gitignore file, GitHub has prepared a variety of configuration files for us, just a combination to use. All profiles can be viewed directly online: Https://github.com/github/gitignore
Six GitHub
Ways to pull items from GitHub git clone https://XXXXXXXXX.git
Seven person configurationThe previous user's
As we all know, Git is already a leader in the field of distributed version control. it forms a complete ecosystem around Git. as we all know, Git is already a leader in the field of distributed version control, a complete ecosystem is formed around Git. To learn about Git,
Note and execute shell commands for Mysql queries. mysql executes shell commands.
Mysql query notes
1. when querying mysql, you must add the database prefix before the table. Otherwise, the database is the current database by default (when multiple databases are queried, duplicate queries may occur to the same table
a branch named "testing"$ git Branch TestingSwitch to "testing" Branch ( default to Master Branch )$ git checkout TestingNew and switch to this branch$ git checkout-b iss53This command is equivalent to performing the following two commands$ git Branch iss53$
In front of that, this article is followed by Colombia's GitHub series of tutorials, Colombia public number: GoogdevFog 艹 ..... have been on a business trip (excuse) ... Looked for two months did not write the blog, is really too TM terrible!!! Hurry up and press yajinggitNote: Before using any of the GIT commands, switch to the GIT project directory
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.