Use Gitbash to synchronize code on GitHub _github

Source: Internet
Author: User
Tags knowledge base

I have a bad memory, in view of every time to find someone else, as a summary of their own

Here's a summary of the steps to use Gitbash to sync code on GitHub;

1. Now on GitHub new knowledge Base, namely new repository


2, fill in your project name and project description, create a knowledge base complete


3. These things are very important. Oh, you can cut down a lot of unnecessary trouble.

4. Need to open your Gitbash client, into the directory where you install Git


5. Create a local folder (mkdir Hssphone)


Open your Git folder and you will see a hssphone file in the directory


6. Enter your name and email address, and then go to your new folder below (CD hssphone/)


7. The input initialization command, here lets you save the page to be useful, the direct copy pastes is good, in order to prevent the mistake, here reminds a sentence, gitbash the client pastes the time is not CTRL + V, but clicks the right mouse button can


8. You need to upload the file to enlarge the folder you created, next enter git Add./* Add the Project


9. Submit the project, and push to the remote server side, and enter your username and password, note that the password is not shown here, as long as the correct input



OK, end, leave a message


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.