5. .gitIgnore

Опубликовано: 29 Январь 2020
на канале: Stewart Lynch
12,422
397

This is the fifth in a series of 6 videos covering Version Control using Xcode with git . In this episode we are going to take a look using terminal to create a .gitignore file that will cause git to ignore certain files and not include them as part of the local or remote repository.

Terminal Commands:
1. Create Global config alias - One time only
git config --global alias.ignore '!gi() { curl -L -s https://www.gitignore.io/api/$@ ;}; gi'

2. For each Project (note ANGLE BRACKETS ARE NOT ALLOWED IN A YOUTUBE DESCRIPTION
Change the ] below to a 'greater than' angle bracket

cd -directory where your project is stored-
git ignore swift,macos ].gitignore
git add .gitignore
git commit -m "Add .gitignore file"

GitIgnore.io
https://www.gitignore.io/

Ray Wenderlich Tutorial
https://www.raywenderlich.com/675-how...

Links to All Episodes

1. Xcode and Git Introduction
   • 1. Xcode and Git Introduction  

2. Git Commits
   • 2. Git Commits  

3. Branching and Merging
   • 3. Branching and Merging  

4. Remote Repositories
   • 4. Remote Repositories  

5. .gitignore
   • 5. .gitIgnore  

6. GitHub Desktop
   • 6.GitHub Desktop  

Stewart Lynch Links

YouTube Playlist on iOS Development
   • Swift and SwiftUI Fundamentals  

Stewart Lynch’s CreaTECH Solutions Web Site
https://www.createchsol.com

Stewart Lynch's GitHub
https://github.com/StewartLynch