Welcome to the Csdn-markdown Editor

Source: Internet
Author: User
Tags git commands

Haven't written a blog for a long time, the fencing casually write something directly into the theme bar!!! Basic Linux Knowledge


    • Linux file structure

/home,/HOME/XXX, ~
/etc
/root
/bin,/usr/bin,/usr/local/bin
/usr/local

  • Basic commands

    lsList files in the current directory
    pwdShow Current Path
    cdgo to a directory
    cpCopy Files
    mvMoving files
    findSearch for files
    touchto modify the timestamp of a file
    mkdirCreate a folder
    rmDelete a folder
    psShow the status of the program
    killKill certain processes
    topshow the programs in management execution
    historyHistorical records

  • Shell, Ksh, zsh, bash
  • Pipeline |, background run &, serial run &&, Xargs
  • Redirect, 0 Basic input, 1 basic output, 2 basic error, > write from scratch, >> append write, 2>&1 merge error and output,/dev/null discard output
  • Text processing grep, awk, sed
  • Remote connection SSH, remote file SCP
  • Permissions executable 1, writable 2, readable 4, sudo, su
  • Text edit VI, sublime text
  • environment variable/etc/profile, ~/.bash_profile, Source command
  • Send Welfare

    ctr+dSend an empty command
    ctr+cEnd Program
    ctr+abeginning of ctr+e line, end of row
    man –helpHelp
    aliasaliases
    -Last Directory

  • Git basic commands why it's useless to use git to explain too much, if you really love programming, just follow the trend.
    • A simple tutorial
    • A slightly more detailed tutorial
    • git authoritative guide
    • Msys, Mgwin
    • Gitolite is used for GIT server rights Management, which is based on SSH
    • GitHub a public Git code management site, open source code of concentration camp
    • Some of the most common git commands

      statusView the status of the current workspace
      logView historical records
      addadd files, commit all changes in the current directory git Add. –all (–all will also submit the deleted action)
      commitsubmit to local, general usage git commit-m "description of this submission"
      checkout
      fetch
      merge
      pullcontain fetch and merge
      push
      stash
      branch
      tag

    • Tips for using

      The warehouse has Mater and Dev branches, the Mater branch is used to record the release record of the product version, each release of a version of a Tag,dev branch for the daily development of the submission code
      It is recommended that you set up your own temporary branch locally, each time you merge to Dev, so that even if you do something wrong, delete the temporary branch, it will not affect the code of others
      When preparing the push code, stash the GIT pull to update the remote code, then git stash pop, merge the conflicting files, add, Commit, push
      Develop a good habit of submitting a feature every time you complete a function to avoid accumulating too many files and conflict with others ' code.

    Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.

    Welcome to the Csdn-markdown Editor

    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.