Commands for Git bash

Source: Internet
Author: User
  1. git clone https://github.com/JasonCheung2012/learngit.git #版本库网址
  2. git add zhangjiethu.txt
  3. Git commit-m "Add a File"
  4. Git push-u Origin Master # submits your local repository to your GitHub account and asks you to enter your GitHub account number and password
  5. Status of Git status #查看工作区, Repository (staging area, current branch)
  6. git checkout master Zhangjie.txt #将工作区的恢复成master中的, in time staging area something, and now it's empty with the workspace.
  7. git rm #与git rm relative, used when deleting files, followed by the same commit

Commands for Git bash

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.