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;