git and github-3 sync to remote repository

Source: Internet
Author: User
Tags git commands

git commands

  git remote-View the name of the repository

     - v -View the address of the remote repository

     -origin -The name of the remote repository

  git push repository name (default is Origin) branch (master)-Sync to remote repository

Default: Git push Origin master

  

  Add a new collaboration person

1. Point +new Collaborator, then add collaborator

  Synchronize update code && Multi-person collaboration to resolve conflicts

   git fetch -compare from remote pull data, manual merge required (recommended)

      git diff master Origin/master -contrast difference (red means local, green means remote)

      git merge origin/master -Manual merge (to go to related file view)

  

   git pull-Auto merge from remote fetch (remote sync to local branch)

Replacement: Switch account

  git config--global user.name "Pingguosky" setting global user name

  git config--global user.email "[email protected]" set global mailbox

Client needs to be re-switched

git and github-3 sync to remote repository

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.