"Linux" git, repo, svn, ADB, and other common commands

Source: Internet
Author: User
Tags svn svn update

One, git

Git reset--soft < version number > fallback commit to commit code

Git format-patch-1 < version number > generate a single patch
gitformat-patch< version number > Generate multiple patches after a version (not including itself)

git am patch/*.patch hit patch

"Git commit--amend--reset-author"

git log--name-only Displays the commit message while displaying the modified file

git branch-a View Remote branch
Git checkout-b * * * Switch Remote BRANCH

Git checkout-b * * * Caf/pmc_***_dev switch branches

Second, repo

Repo sync + git bin path download only one git warehouse code

(Git bin path can refer to. Repo under the Manifest.xml file)

Third, SVN

SVN update svn updates file: Execute command under/home/user/svn/rm181/tsjp/

SVN upload file steps:
SVN status
SVN Add file name
SVN commit-m "description" file name

Iv. ADB

ADB logcat-v time >/home/user/desktop/log_2018.2.25_1107.txt output log file

ADB installxxx.apk computer to install APK package for mobile phone

V. Other COMMON commands

Find-name "Files" to find files

Free to view memory usage

Apt-get Install Multimail installation software Multimail
Apt-get Remove Multimail Uninstall software Multimail

"Linux" git, repo, svn, ADB, and other common commands

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.