SVN & Git (ii)

Source: Internet
Author: User
Tags git commands

Git: is a free, open source distributed version control system for agile and efficient processing of any or small or large project.

Git is an open source distributed version control system for efficient, high-speed processing of project versioning from very small to very large. Git is an open source version control software developed by Linus Torvalds to help manage the development of the Linux kernel.

Git is a version control tool for Linux kernel development. Unlike the commonly used version control tool, CVS, Subversion, which uses a distributed repository, does not need server-side software support (Wingeddevil Note: This score is based on the service side, using the HTTP protocol or the GIT protocol is not the same. And at the time of push and pull, there is still interaction with the server side. ), so that the release and communication of the source code is extremely convenient. Git is fast, and it's naturally important for big projects like Linux kernel. The best of Git is its combined tracking (merge tracing) capability.

==========================

1, using terminal terminal!

==========================

Git Configuration

# Use SSH to configure Git

* Written at the end!

# Configure the Warehouse

$ git config--global user.name "YOUR name"

$ git config--global user.email "YOUR email ADDRESS"

# Initialize Warehouse

Git init

git Add.

Git commit-m "ProjectName"

Http://www.apple.com/aplescript/toolbar

Custom git commands:

$ git config alias.cf "commit-m"

-------

Add. Gitignore

Script command:

-----------------------

Echo-e "# Xcode
#
build/
*.pbxuser
*.mode1v3
*.mode2v3
*.perspectivev3
Xcuserdata
*.xccheckout
*.moved-aside
Deriveddata
*.hmap
*.ipa
*.xcuserstate
# CocoaPods
#
# We recommend against adding the Pods directory to your. Gitignore. However
# Should judge for yourself, the pros and cons is mentioned at:
# Http://guides.cocoapods.org/using/using-cocoapods.html#should-i-ignore-the-pods-directory-in-source-control
#

# pods/"> Gitignore

-----------------------------

# Add. Gitignore to the code base

$ git Add. Gitignore

-------

Custom shortcut keys:

# Enter Directory

$HOME/.BASHRC or $HOME/.bash_profile

# Edit Content

Alias ll= "Ls-l"

Alias cls= "Clear"

Alias gc= "Git clone"

Export Clicolor=1

-------

Ssh

1. Create SSH:

$ ssh-keygen-t rsa-c "[Email protected]"

2. Add the public key to the Clipboard and add (paste) it to the Web page

$ pbcopy < ~/.ssh/id_rsa.pub# Copies The contents of the Id_rsa.pub file to your clipboard

3. Local Authentication:

$ eval "$ (ssh-agent-s)"

$ Ssh-add ~/.ssh/git_os_rsa

$ ssh-t [email protected]

4. Import Project:

$ git clone https://github.com/xxx/xxxxx

==========================

Submit Note?!

-----------

1. Change the default mailbox in GitHub to the user's mailbox . (cannot use its own default mailbox)

2, during the submission process, be sure to ignore the [User data]&[Shared data] File!

================

Ps:

[ one sentence per day ]

It's best not to miss something that's gone.

[ an English song every day ]

"This Love"--Taylor Swift

================

|--> Copyright (c) Bing Ma.

|--> GitHub RUL: https://github.com/SpongeBob-GitHub

SVN & Git (ii)

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.