Submit a pull Request for GitHub using Visualcode + ITerm2

Source: Internet
Author: User

Visualcode integrates GitHub functionality and is a powerful tool for program apes to participate in open source projects. Compared to the sublime is a lot simpler (plug-in installation cumbersome, such as you try to install Gosublime in Sublime2, there are pits; Sublime 3 Fixes a bug in the package control). In short, there is a trust in the projects that Daniel Eric Gramma is responsible for, the main difference being productivity.

Visualcode is not particularly familiar with the development of the GitHub Open source project today using a hybrid model-that is, using the ITerm2 Terminal clone project, editing and submitting in Visualcode, and generating pull Request on the GitHub site. The steps are as follows:

1) git clone https://github.com/beepone/bootstrap.git

2) CD Bootstrap

3) Open the above directory in Visualcode, edit a file

4) Click on the GitHub icon on the left, VC automatically find the change, then enter a message, press Command+enter

5) inside the ITerm2 terminal, in the current directory, enter Git push, note that it is better to set the global user name and mailbox before the unrecognized author warning appears.

git config--global user.name "yourname in GitHub"

git config--global user.email [email protected]

6) Successful submission, you should be able to see the following information

Counting Objects:3, done.
Delta compression using up to 4 threads.
Compressing objects:100% (3/3), done.
Writing objects:100% (3/3), 281 bytes | 0 bytes/s, done.
Total 3 (Delta 2), reused 0 (Delta 0)
Remote:resolving deltas:100% (2/2), completed with 2 local objects.
To Https://github.com/beepony/bootstrap.git
8f0dd8a. 2F783CA Master, Master

If you want to rollback the commit you just made, enter the following two commands

git reset--hard head^

Git push Origin HEAD--force

Output

Total 0 (Delta 0), resued 0 (Delta 0)

To Https://github.com/beepony/bootstrap.git

+ f4cc153 ... 8f0dd8a HEAD, Master (forced update)

Finally, in the GitHub project, find commit and click into a page to create a pull Request.

Submit pull Request for GitHub using Visualcode + iTerm2

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.