generated from ucoruh/vs-net-core-template
-
Notifications
You must be signed in to change notification settings - Fork 1
/
2-create-git-ignore.bat
33 lines (23 loc) · 922 Bytes
/
2-create-git-ignore.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
rem use github gitignore templates via API
rem https://github.com/sloria/gig
rem INSTALL
rem pip install -U gig
rem API URLS
rem API_URL = "https://api.github.com/gitignore/templates"
rem GLOBAL_URL = "https://api.github.com/repos/github/gitignore/contents/Global/"
rem TEMPLATE_URL = "https://raw.github.com/github/gitignore/master"
rem HEADER = "########## Generated by gig ###########\n"
rem USAGE
rem gig list
rem gig list --global
rem gig Python Ruby > .gitignore
rem gig C C++ CMake Java VisualStudio
@echo off
set API_URL=https://www.toptal.com/developers/gitignore/api/c,csharp,vs,visualstudio,visualstudiocode,java,maven,c++,cmake,eclipse,netbeans
set OUTPUT_FILE=.gitignore
REM Set the running folder to the current working folder
cd /d "%~dp0"
REM Download the API results using curl
curl -s -o %OUTPUT_FILE% %API_URL%
echo Downloaded .gitignore file from %API_URL% and saved as %OUTPUT_FILE%
pause