Steps for git to manage your code

Source: Internet
Author: User

It is divided into 4 main steps

**

1.CD Enter the file and enter the git clone + URL

2.git Add. There are spaces in the middle

3.git commit-m "file name"

4.git push

Other:

GIT init: Initialization

git status:git status

git checkout file name

1.

Ls-ah See If there are no ssh files if not, perform the second step

and then Ls-ah again to see if there is, then cd. SSH into the file

and then view Ls-ah

then cat id_rsa.pub get public key

2.ssh-keygen-t rsa-c " Email address "

3. Create a project under the cloned directory

Then enter this project file on the CD

The following is almost all the process:

1. Ls-ah View Directory

See if there are any. ssh files created if they are not.

ssh-keygen-t rsa-c " Email address "

2. cd. SSH into the. ssh file

3. Ls-ah View Directory

4.cat id_rsa.pub Get Public key

5. Go back to the main directory CD ~

6. Git clone + URL

7. LS enters the user's home directory

8. CD into the cloned folder

9. Ls-ah View catalog new project in folder

git Add. There are spaces behind add

git commit-m "Content"

12.git push

Steps for git to manage your code

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.