Git notes command line (1)

Source: Internet
Author: User
Tags git commands

Git is easy to use, just enter Git to list all of his parameters

1C:\users\spu>git2Usage:git [--version] [--help] [-C <Path] [-C name=value]3[--exec-Path[=<Path] [--html-Path] [--man-Path] [--info-Path]4[-P |--paginate |--no-pager] [--no-Replace-objects] [--bare]5[--git-dir=<Path] [--work-Tree=<Path] [--namespace=<name>]6<Command> [<args>]7 8 These is common Git commands used in various situations:9 Ten StartA working area (see Also:git Help tutorial) One Clone clone a repository into a new directory A init Create An empty Git repository or reinitialize an existing one -  -Work onThe current change (see Also:git help everyday) the Add Add File contents to the Index -MvMoveOrRenameA file, directory A,or a symlink - Reset Reset Current HEAD to the specified state -RM RemoveFilesFrom the workingTreeAnd from the index +  -Examine the Also:git help revisions +Bisect UseBinary Search toFindThe commit that introduced a bug AGrepPrintlines matching a pattern at Log Show Commit logs - Show show various types of objects -Status Show The WorkingTreeStatus -  -Growmark and tweak your common history -Branch List, create,or delete branches inCheckout Switch Branches orRestoreWorkingTree Files - commit Record changes to the repository toDiff Show Changes between commits, commit and workingTree,etc +MergeJoinor more development histories together -Rebase Reapply commits ontop of another base tip theTag Create, list, delete orVerifya Tag object signed with GPG *  $Collaborate (see Also:git Help workflows)Panax Notoginseng fetch Download objects and refs from another repository - Pull Fetch from and integrate with another repository or a local branch the  + push Update remote refs along with associated objects A  the ' git help-a ' and ' git help-g ' list available subcommands and some +Concept guides. See ' Git Help <Command> ' or ' Git help <concept>' -To read about a specific subcommand or concept.
View Code

Git commands can be divided into short and long options. For example:

git commit-m "Hello git"

git commit--message= "Hello git"

The above two command-type equivalent

1.Git Getting Started

There are two kinds of resumes for git repository technology. You can create from scratch, populate it with existing content, or clone a repository that you already have, from an empty repository to simple, all from an empty repository.

1.1 Creating an initial repository

1 mkdir ~/public_html 2 cd ~/public_html 3 echo ' Hello git ' >index.html

  

Git notes command line (1)

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.