iOS development using command line from git pull replace code detailed

Source: Internet
Author: User
Tags commit git clone
Use the command line to download the installation package from the official website and install it manually from the git Pull substitution code . Open git Bash command-line tool, execute command ssh-keygen-t rsa-c email-addresss generate a key pair. Login to Gitlab, click on the top right corner of your user avatar, click Edit Profile Settings, click SSH Keys, click Add SSH Key, fill in the title column, copy the user directory. Ssh/id_ Rsa.pub the contents of the file to key, click Add Key. Click on the top right corner of new project, fill out and click Create Project to create a new warehouse, click the activity, click on SSH and copy the address in the sidebar. Open the Git Bash command-line tool, switch to a suitable directory (where you want the project to be put), and use the command git clone to create the repository of the URL clones that you just copied. Enter directory CD warehouse name, execute command git config--global user.email your-email,
git config--global user.name your-name, set your personal information. To execute a command:
echo "#Description" > readme.md, add a file
Git status, looking at the current status, found that there are no trace files
git Add., all files in current directory are added to registers
Git diff, compare the current workspace with the registers
Git status, view current status, found file not submitted
Git commit-m "comments" to submit registers content to the local repository
Git push-u origin master to push the commit of the local warehouse to the remote repository
git log, viewing submit logs
Related Article

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.