Git uploads the excluded configuration file, git actual operation code;

Source: Internet
Author: User

Excluded configuration files in git uploads:

the actual operation of Gitcreate the. gitignore file in the home directory and enter the following to save:
*. class #  Package file*. War*. EAR#KDIFF3 Ignore*. Orig#maven ignoretarget/#eclipese Ignore.settings/. Project.classpatch#idea.idea//idea/*. IPR*.iml*.iws# Temp file*. Log*. Cache*. diff*.Patch*. Tmp#system ignore. Ds_storethumbs.db
View Code 1: Perform initializationgit init2: View statusgit status3: Upload local and add commentsgit commit-am "comments"4: copy git's address git remote add Origin6: Pull filegit Pull7: Push remote repositorygit push-u Origin master8: Force push (overwrite)git push-u-F Origin Master9: View local branch;git branch10: View the remote branch namegit branch-rOne :Push Branch to Gitgit checkout-b name Remote branch name12: Look at the branch again and commit to the remotegit checkoutgit push Origin head-u

Git uploads the excluded configuration file, git actual operation code;

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.