Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

See all changed and staged files in Xcode 9

Tags:

git

xcode9

How to see a list of all changed files (pending stage & commit) with Xcode 9?

I don't see an option in Source Control Navigator (keyboard shortcut: command-2) or Source Control menu option.

List of files corresponding to git status command on terminal. Also, if possible git diff --staged.

Please add a keyboard shortcut if any.

like image 499
lal Avatar asked Oct 01 '17 08:10

lal


People also ask

How do I see changed files in Xcode?

View a History of Project States Xcode has a commit history view that lets you view historical changes for your source control repository when you're investigating a bug or adding code for a new feature. Open the Source Control navigator. In the Repositories navigator, expand your repository and the Branches folder.

How do I see file history in Xcode?

Select the file for which you want to see the commit history. Then go to View > Version Editor > Show Version Editor (or just select the Comparison view from the top-right toolbar icon - same place as the Blame view). Clicking on the commit label below the editor will reveal the history including dates.

How can I see all commits in Xcode?

Click and hold on the Version Editor button and select Log. You can also choose View\Version Editor\Show Log View from the menu. Xcode will list the commits that contain changes to the current file.


2 Answers

As Mark answered you can filter all the modified files, after that don't forget to turn on Comparison, so you can see where the code got changed.

enter image description here

like image 74
Developer Sheldon Avatar answered Nov 02 '22 23:11

Developer Sheldon


The closest thing Xcode has is a button at the bottom of the project navigator to show only files with source-control status. Clicking the button shows files that have uncommitted changes.

enter image description here

like image 30
Swift Dev Journal Avatar answered Nov 02 '22 22:11

Swift Dev Journal