I'm new to Git, and this is my first project to use Git as my source control instead of SIVN . I'm working on XCode on an iPhone project to let me ignore the build directory, which is in the original folder of the XCode project. I have found many other questions here and there are articles on Google that provide an example about creating .gitignore files in the root directory and then get it to ignore the directory to add it to the git repository.
In this way, I am taking that step when I am setting up the repository:
- Open the terminal and navigate to the root directory of the application
- Call
git add.gitignoregitignore file to callgit initto file jitgnore- Call
- Call < Code> git commit -m
- to view status of the repository
git status
At this point, all other directories and my JigDear file Switch to list files are ignoring properly except the build directory. My guitar file is shown here:
build / .DS_store ** / * .pbxuser * .mode2v3 * .mode1v3 ** / *.orLi> should be sufficient to code> build / build / *to ignore the directory.At this point it can still not be ignored: / P>
- Anyhow added to the index and committed (which, according to your setup, in this case
- The .gitignore file has an interval position in the rule (like this)
Comments
Post a Comment