Learn to submit code to the Gitlab online warehouse.

Source: Internet
Author: User
Tags git clone

1. Toggle git Bash directory: Find the project folder right button has git bash here;


2. Login: git config--global user.email "you@example.com" git config--global user.name "Your name"
This email and name is followed by a space to note.
3.git Status: View the status of the warehouse.
4.git Add <file>: Add the file to the buffer;
5.git Status: Query whether to join the success;
6.git commit-m "": Only files added to the cache are submitted to the local repository, or git commit-a-M "": Can submit files that have been modified but not added to the cache
7.git Log:git Log can view the submission history, followed by--pretty=oneline can make the content single-line display;
8.git Push Origin Master: Upload the local warehouse files to the online warehouse;
Insert git clone ' your online warehouse address ' between 2 and 3;

Here's a little tip for pasting: shift+insert: Paste, CTRL + Insert: copy;

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.