u
This commit is contained in:
		
							parent
							
								
									024a205ad6
								
							
						
					
					
						commit
						07883fc864
					
				| @ -1,7 +1,8 @@ | |||||||
| #!/bin/bash | #!/bin/bash | ||||||
| 
 | 
 | ||||||
| echo "---------------------------------------------" | echo "---------------------------------------------" | ||||||
| read -p "User Name (leave blank for no change) >>> " UserName | echo "User Name (leave blank for no change)"  | ||||||
|  | read -p ">>> " UserName | ||||||
| if [ $UserName ] | if [ $UserName ] | ||||||
| then | then | ||||||
|   echo "git config --global user.name $UserName" |   echo "git config --global user.name $UserName" | ||||||
| @ -9,7 +10,8 @@ then | |||||||
| fi | fi | ||||||
| 
 | 
 | ||||||
| echo "---------------------------------------------" | echo "---------------------------------------------" | ||||||
| read -p "User Email (leave blank for no change) >>> " UserEmail | echo "User Email (leave blank for no change)"  | ||||||
|  | read -p ">>> " UserEmail | ||||||
| if [ $UserEmail ] | if [ $UserEmail ] | ||||||
| then | then | ||||||
|   echo "git config --global user.email $UserEmail" |   echo "git config --global user.email $UserEmail" | ||||||
| @ -18,7 +20,8 @@ fi | |||||||
| 
 | 
 | ||||||
| echo "---------------------------------------------" | echo "---------------------------------------------" | ||||||
| echo "如果 git 远程服务器的 ssl 证书过期,或者使用了自颁发的证书,连接时会出现验证错误 Cannot verify local issuer" | echo "如果 git 远程服务器的 ssl 证书过期,或者使用了自颁发的证书,连接时会出现验证错误 Cannot verify local issuer" | ||||||
| read -p "Verify ssl? (true or false, blank for no change) >> " HttpSslVerify | echo "Verify ssl? (true or false, blank for no change)"  | ||||||
|  | read -p ">>> " HttpSslVerify | ||||||
| if [ $HttpSslVerify ] | if [ $HttpSslVerify ] | ||||||
| then | then | ||||||
|   echo "git config --global http.sslVerify $HttpSslVerify" |   echo "git config --global http.sslVerify $HttpSslVerify" | ||||||
| @ -26,7 +29,8 @@ then | |||||||
| fi | fi | ||||||
| 
 | 
 | ||||||
| echo "---------------------------------------------" | echo "---------------------------------------------" | ||||||
| read -p "Store credential in cache or store? (leave blank for no change) >> " CredentialHelper | echo "Store credential in cache or store? (leave blank for no change)"  | ||||||
|  | read -p ">>> " CredentialHelper | ||||||
| if [ $CredentialHelper ] | if [ $CredentialHelper ] | ||||||
| then | then | ||||||
|   echo "git config --global credential.helper $CredentialHelper" |   echo "git config --global credential.helper $CredentialHelper" | ||||||
| @ -34,20 +38,19 @@ then | |||||||
| fi | fi | ||||||
| 
 | 
 | ||||||
| echo "---------------------------------------------" | echo "---------------------------------------------" | ||||||
| read -p "Path to global gitignore file? (For example ~/.gitignore, leave blank for no change) >> " ExcludesFile | echo "Path to global gitignore file? (For example ~/.gitignore, leave blank for no change)" | ||||||
|  | read -p ">>> " ExcludesFile | ||||||
| if [ $ExcludesFile ] | if [ $ExcludesFile ] | ||||||
| then | then | ||||||
|   if [ -e $ExcludesFile ] |   echo "git config --global core.excludesfile $ExcludesFile" | ||||||
|   then |   git config --global core.excludesfile $ExcludesFile | ||||||
|     echo "git config --global core.excludesfile $ExcludesFile" | else | ||||||
|     git config --global core.excludesfile $ExcludesFile |   echo "File not exsit: $ExcludesFile" | ||||||
|   else |  | ||||||
|     echo "File not exsit: $ExcludesFile" |  | ||||||
|   fi |  | ||||||
| fi | fi | ||||||
| 
 | 
 | ||||||
| echo "---------------------------------------------" | echo "---------------------------------------------" | ||||||
| read -p "Set default branch since git 2.28 to master or main? (leave blank for no change) >> " DefaultBranch | echo "Set default branch since git 2.28 to master or main? (leave blank for no change)" | ||||||
|  | read -p ">>> " DefaultBranch | ||||||
| if [ $DefaultBranch ] | if [ $DefaultBranch ] | ||||||
| then | then | ||||||
|   echo "git config --global init.defaultbranch $DefaultBranch" |   echo "git config --global init.defaultbranch $DefaultBranch" | ||||||
|  | |||||||
							
								
								
									
										64
									
								
								nixhome/.gitignore
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										64
									
								
								nixhome/.gitignore
									
									
									
									
										vendored
									
									
								
							| @ -1,26 +1,58 @@ | |||||||
| .DS_Store | # See https://help.github.com/articles/ignoring-files/ for more about ignoring files. | ||||||
| Thumbs.db | 
 | ||||||
| node_modules/ | node_modules/ | ||||||
|  | /test/unit/coverage/ | ||||||
|  | /test/e2e/reports/ | ||||||
|  | .svn/ | ||||||
|  | .idea/ | ||||||
|  | .sass-cache/ | ||||||
|  | .deploy_git/ | ||||||
|  | .gitattributes | ||||||
|  | _desktop.ini | ||||||
|  | .DS_Store | ||||||
|  | .thumbnails | ||||||
|  | Thumbs.db | ||||||
|  | thumbs.db | ||||||
|  | .umi | ||||||
|  | .umi-production | ||||||
| npm-debug.log* | npm-debug.log* | ||||||
| yarn-debug.log* | yarn-debug.log* | ||||||
| yarn-error.log* | yarn-error.log* | ||||||
| /test/unit/coverage/ |  | ||||||
| /test/e2e/reports/ |  | ||||||
| selenium-debug.log | selenium-debug.log | ||||||
| 
 | package-lock.json | ||||||
| # Editor directories and files | *.iml | ||||||
| .idea |  | ||||||
| .vscode |  | ||||||
| *.suo |  | ||||||
| *.ntvs* |  | ||||||
| *.njsproj | *.njsproj | ||||||
|  | *.ntvs* | ||||||
| *.sln | *.sln | ||||||
| /package-lock.json | *.suo | ||||||
| 
 | ._* | ||||||
| # Microsoft Office temporary files | .$* | ||||||
| ~$* | ~$* | ||||||
| 
 | 
 | ||||||
| # seafile temporary files |  | ||||||
| ._* |  | ||||||
| 
 |  | ||||||
| .bashrc_custom | .bashrc_custom | ||||||
|  | 
 | ||||||
|  | # hexo | ||||||
|  | db.json | ||||||
|  | 
 | ||||||
|  | # 客户端 uniapp 项目 | ||||||
|  | /unpackage/dist | ||||||
|  | /unpackage/release | ||||||
|  | /unpackage/cache | ||||||
|  | /_archive/* | ||||||
|  | /_datastore/* | ||||||
|  | /_logstore/* | ||||||
|  | /_filestore/* | ||||||
|  | *.apk | ||||||
|  | /pages4loader.json5 | ||||||
|  | envar-web-custom.js | ||||||
|  | envar-deploy-secret.js | ||||||
|  | 
 | ||||||
|  | # hexo 项目 | ||||||
|  | public/ | ||||||
|  | 
 | ||||||
|  | # 服务端(server or uniapp-uniCloud)项目 | ||||||
|  | envar-base-custom.js | ||||||
|  | envar-base-dynamic.js | ||||||
|  | envar-base-secret.js | ||||||
|  | 
 | ||||||
|  | !.gitkeep | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user