Git configuration and Common commands, git configuration Common commands

Source: Internet
Author: User

Git configuration and Common commands, git configuration Common commands

1. Configuration

1) download the git software online. I'm git-1.9.5-preview20150319.exe and TortoiseGit-1.8.14.0-64bit.msi.

After installation, click git bash from the Start Menu


2) Input

Ssh-keygen-C "shixin@yiche.com"-t rsa

To generate a pair of keys, which are saved to ~ by default ~ /. Ssh directory.

3) Input git config -- global user. email shixin@yiche.com
Git config -- global user. name shixin to set account information.

4) then add the public key to the other machine, git clone git@192.168.2.155: android-autoEasy.git to download the server project.

2. Common commands

Git branch-

View All Branches

Git checkout develop

Switch Branch

Git add.

Add the modified file to the git Index

Git status

View modified files

Git commit-a-m "comment"

Submit the modification content to the local branch

Git pull origin develop

Synchronize a server project to a local device

Git push origin develop

Upload locally modified files to the server

Related Article

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.