Git Small Skills

Source: Internet
Author: User
1. Ignore local specified files

For example, git status ignores all. pyc files

In the git download to local directory, modify the. git/info/exclude file, add

*.pyc

2. Switch branches

3. Download

$ git branch-a
* Master
Remotes/origin/head-Origin/master
Remotes/origin/master

[Email protected]/d/iu_iso_check (master)
$ git Branch
* Master

Ps-ef | grep python|grep Worker|awk ' {print $} ' |xargs sudo kill-9

GID add
git status
Git commit
git push orign
Git Branch View branch (show current)
Geit checkout-b Test Toggle
Git branch test2
Toggle git Checkout Test2
Git merge (compositing)
git rebase (overwrite)

Git pull pulls the remote to merge its own branch
Git fetch origin pulls to the far end to update the repository itself, without merging
=================
SSH authentication
Git httpurl
Git pull
Sshkeys
Git diff


Add Push Commit

Git Small Skills

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.