Adding Files to a Local Git Repository
On this page:
- Basics
- Adding all currently unversioned files to Git control
- Adding specific files to a local Git repository
Basics
After a Git repository for a project is initialized, you need to add the project data to it.
If you have specified Git as the version control system for your project in the Preferences | Version Control page, AppCode suggests to put each newly created file under Git version control.
To make Git ignore some types of files, configure files to ignore.
Adding all currently unversioned files to Git control
- Switch to the Version Control tool window and switch to the Local Changes tab. tool window.
- Expand the Unversioned Files node and choose from the context menu or press⌃⌥A.
Adding specific files to a local Git repository
Do one of the following:
- Switch to the Version Control tool window and switch to the Local Changes tab. Expand the Unversioned Files node, and select the files to be added. From the context menu, choose , or press ⌃⌥A.
- Switch to the Project tool window and select the files to be added. From the context menu, choose or press⌃⌥A.
See Also
Reference:
Concepts:
Last modified: 26 July 2017