"Getting Started with git 13" Ubuntu and Git

Source: Internet
Author: User

"Getting Started with git 13" Ubuntu and Git-jackystudio-Blog channel-csdn.net

Previously, we were working with git under the Windows platform. Now let's try Ubuntu instead! Prepare your Ubuntu or Linux system first. The 13.04 version of the virtual machine environment is used here



use git under 1.Ubuntu

Open Terminal (ctrl+alt+t). There's no Git bash under Ubuntu, it's all about using terminal.



1.1. Install SSH

?

[CPP]? view
Plaincopy?
    1. Sudo?apt-get?install? Ssh??

?

1.2. Install git

?

[CPP]? view
Plaincopy?
    1. Sudo?apt-get?install?git??

?

1.3. Set user name and mailbox

This is the same as under Windows.





1.4. Initialize git and make a commit

These actions include that the rest of the operations are consistent with the use of Windows and are not duplicated later. See the previous sections.





2. Using Ubuntu to build a server

Now the GIT service is better to have GitHub and BitBucket, the latter can also establish a private remote warehouse, as well as the Chinese interface, but if you want to build a local network server, how to do?



2.1. Building a server remote repository





2.2. Push local modifications to the server repository

?

[CPP]? view
Plaincopy?
  1. #修改本地Jackydata01
  2. $SNBSP, Echo? "Hello?" Ubuntu "?? Jackydata01??
  3. ??
  4. #. Submit changes to
  5. $SNBSP, git?commit?-a?-m? "Helloubuntu" ??
  6. ??
  7. #添加Ubuntu服务器远程仓库 ??
  8. $Snbsp; [email protected]:srv.git??]
  9. ??
  10. #推送到ubuntu服务器远程仓库 ??
  11. $Snbsp; Git?push?ubuntu?master??

"Getting Started with git 13" Ubuntu and Git

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.