5. .gitIgnore

Published: 29 January 2020
on channel: 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


Watch video 5. .gitIgnore online without registration, duration hours minute second in high quality. This video was added by user Stewart Lynch 29 January 2020, don't forget to share it with your friends and acquaintances, it has been viewed on our site 12,422 once and liked it 397 people.