Git to customize

Ignore special file

  • For confidentiality strong or not required to submit documents, can be in .gitignorethe configuration file, submit achieve ignore these files

  • .gitignoreTo put itself in the repository, and can .gitignorerelease management

  • When a file is .gitignoreignored, it can git add -f <filename>be forced to submit

  • When not know which rule to allow a file can not submit, you can git check-ignore -v <filename>check command

Configuring an Alias

$ Git config --global alias. <Alias> <original name>

Guess you like

Origin www.cnblogs.com/ashen1999/p/12559943.html